diff options
| author | Gerd Moellmann | 2000-11-27 12:13:06 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-11-27 12:13:06 +0000 |
| commit | 67f1cf4c4e450f3c99216aeb6e1242ed3462116c (patch) | |
| tree | 1bcce900122e85cd9acab33b0ded38dc8c6dfc2e /src | |
| parent | 0c713b6f8892749b578e52deba2e5dec0f8114de (diff) | |
| download | emacs-67f1cf4c4e450f3c99216aeb6e1242ed3462116c.tar.gz emacs-67f1cf4c4e450f3c99216aeb6e1242ed3462116c.zip | |
(try_window_id): Avoid starting to display in the moddle
of a character, a TAB for instance. This is easier than to set
up the iterator exactly, and it's not a frequent case, so the
additional effort wouldn't really pay off.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/xdisp.c | 11 |
2 files changed, 19 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 971bd2bc047..909cce3e2a8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,6 +1,13 @@ | |||
| 1 | 2000-11-27 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (try_window_id): Avoid starting to display in the moddle | ||
| 4 | of a character, a TAB for instance. This is easier than to set | ||
| 5 | up the iterator exactly, and it's not a frequent case, so the | ||
| 6 | additional effort wouldn't really pay off. | ||
| 7 | |||
| 1 | 2000-11-26 Andrew Choi <akochoi@i-cable.com> | 8 | 2000-11-26 Andrew Choi <akochoi@i-cable.com> |
| 2 | 9 | ||
| 3 | * emacs.c (main) [macintosh]: call syms_of_frame before calling | 10 | * emacs.c (main) [macintosh]: Call syms_of_frame before calling |
| 4 | init_window_once. | 11 | init_window_once. |
| 5 | 12 | ||
| 6 | 2000-11-25 Jason Rumney <jasonr@gnu.org> | 13 | 2000-11-25 Jason Rumney <jasonr@gnu.org> |
diff --git a/src/xdisp.c b/src/xdisp.c index 6cec7760926..16ac7dba318 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -10767,6 +10767,17 @@ try_window_id (w) | |||
| 10767 | last_unchanged_at_beg_row = find_last_unchanged_at_beg_row (w); | 10767 | last_unchanged_at_beg_row = find_last_unchanged_at_beg_row (w); |
| 10768 | if (last_unchanged_at_beg_row) | 10768 | if (last_unchanged_at_beg_row) |
| 10769 | { | 10769 | { |
| 10770 | /* Avoid starting to display in the moddle of a character, a TAB | ||
| 10771 | for instance. This is easier than to set up the iterator | ||
| 10772 | exactly, and it's not a frequent case, so the additional | ||
| 10773 | effort wouldn't really pay off. */ | ||
| 10774 | while (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P (last_unchanged_at_beg_row) | ||
| 10775 | && last_unchanged_at_beg_row > w->current_matrix->rows) | ||
| 10776 | --last_unchanged_at_beg_row; | ||
| 10777 | |||
| 10778 | if (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P (last_unchanged_at_beg_row)) | ||
| 10779 | return 0; | ||
| 10780 | |||
| 10770 | init_to_row_end (&it, w, last_unchanged_at_beg_row); | 10781 | init_to_row_end (&it, w, last_unchanged_at_beg_row); |
| 10771 | start_pos = it.current.pos; | 10782 | start_pos = it.current.pos; |
| 10772 | 10783 | ||