diff options
| author | Kim F. Storm | 2004-02-07 00:00:13 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-02-07 00:00:13 +0000 |
| commit | ec110e9e90a1ccbb8217f1ce7909e7faf734e32f (patch) | |
| tree | 1f533e2d0001e1d3d3ba1a2804f62f62a8c5cb78 /src | |
| parent | 3af5525137d6c99f342ffbeef63eaa39bca18c59 (diff) | |
| download | emacs-ec110e9e90a1ccbb8217f1ce7909e7faf734e32f.tar.gz emacs-ec110e9e90a1ccbb8217f1ce7909e7faf734e32f.zip | |
(hscroll_window_tree): Position cursor near to right margin in hscrolled
window when jumping to end of line (rather than centering cursor).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 15457e9abff..ad219254ddb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2004-02-07 Kim F. Storm <storm@cua.dk> | 1 | 2004-02-07 Kim F. Storm <storm@cua.dk> |
| 2 | 2 | ||
| 3 | * xdisp.c (hscroll_window_tree): Position cursor near to right | ||
| 4 | margin in hscrolled window when jumping to end of line (rather | ||
| 5 | than centering cursor). | ||
| 6 | |||
| 3 | * process.c (wait_reading_process_input): Don't do adaptive read | 7 | * process.c (wait_reading_process_input): Don't do adaptive read |
| 4 | buffering if waiting for a specific process. | 8 | buffering if waiting for a specific process. |
| 5 | 9 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index 3241822e7b4..5186a8641c3 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -9562,7 +9562,10 @@ hscroll_window_tree (window) | |||
| 9562 | 9562 | ||
| 9563 | /* Position cursor in window. */ | 9563 | /* Position cursor in window. */ |
| 9564 | if (!hscroll_relative_p && hscroll_step_abs == 0) | 9564 | if (!hscroll_relative_p && hscroll_step_abs == 0) |
| 9565 | hscroll = max (0, it.current_x - text_area_width / 2) | 9565 | hscroll = max (0, (it.current_x |
| 9566 | - (ITERATOR_AT_END_OF_LINE_P (&it) | ||
| 9567 | ? (text_area_width - 4 * FRAME_COLUMN_WIDTH (it.f)) | ||
| 9568 | : (text_area_width / 2)))) | ||
| 9566 | / FRAME_COLUMN_WIDTH (it.f); | 9569 | / FRAME_COLUMN_WIDTH (it.f); |
| 9567 | else if (w->cursor.x >= text_area_width - h_margin) | 9570 | else if (w->cursor.x >= text_area_width - h_margin) |
| 9568 | { | 9571 | { |