aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2011-08-25 20:16:39 +0300
committerEli Zaretskii2011-08-25 20:16:39 +0300
commite25be79236edca0e26a9fcd81b7f2a3746e8f9ef (patch)
tree4af0aa209835f3c7ab9980fa097a1a49f6df2712 /src
parentfee65a97c0265c8406aa7d8c884beeb5ba712a1e (diff)
downloademacs-e25be79236edca0e26a9fcd81b7f2a3746e8f9ef.tar.gz
emacs-e25be79236edca0e26a9fcd81b7f2a3746e8f9ef.zip
Fix last change for text terminals.
src/xdisp.c (try_cursor_movement): Don't advance `row' beyond the last row of the window.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/xdisp.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1176c9254ea..149753a6749 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -8,7 +8,8 @@
8 `(space ...)', and specifies display in the text area, return 2 8 `(space ...)', and specifies display in the text area, return 2
9 rather than 1. 9 rather than 1.
10 (try_cursor_movement): Check for the need to scroll more 10 (try_cursor_movement): Check for the need to scroll more
11 accurately, and prefer exact match for point under bidi. 11 accurately, and prefer exact match for point under bidi. Don't
12 advance `row' beyond the last row of the window.
12 13
13 * dispextern.h (struct bidi_it): Rename the disp_prop_p member 14 * dispextern.h (struct bidi_it): Rename the disp_prop_p member
14 into disp_prop; all users changed. 15 into disp_prop; all users changed.
diff --git a/src/xdisp.c b/src/xdisp.c
index 55bbb7cf62e..beb161f4ce4 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -14624,6 +14624,8 @@ try_cursor_movement (Lisp_Object window, struct text_pos startp, int *scroll_ste
14624 rc = CURSOR_MOVEMENT_SUCCESS; 14624 rc = CURSOR_MOVEMENT_SUCCESS;
14625 break; 14625 break;
14626 } 14626 }
14627 if (MATRIX_ROW_BOTTOM_Y (row) == last_y)
14628 break;
14627 ++row; 14629 ++row;
14628 } 14630 }
14629 while (((MATRIX_ROW_CONTINUATION_LINE_P (row) 14631 while (((MATRIX_ROW_CONTINUATION_LINE_P (row)