Revert incorrect logic in 2011-03-06T07:50:01Z!eggert@cs.ucla.edu.
* src/xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06 change.
This commit is contained in:
parent
0b3cecebd5
commit
ef272f1fc1
2 changed files with 9 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-03-06 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
|
||||
change.
|
||||
|
||||
2011-03-06 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
current_column: Now returns EMACS_INT, fixing some iftc
|
||||
|
|
10
src/xdisp.c
10
src/xdisp.c
|
@ -13697,6 +13697,7 @@ redisplay_window (Lisp_Object window, int just_this_one_p)
|
|||
int buffer_unchanged_p = 0;
|
||||
int temp_scroll_step = 0;
|
||||
int count = SPECPDL_INDEX ();
|
||||
int rc;
|
||||
int centering_position = -1;
|
||||
int last_line_misfit = 0;
|
||||
EMACS_INT beg_unchanged, end_unchanged;
|
||||
|
@ -14008,15 +14009,12 @@ redisplay_window (Lisp_Object window, int just_this_one_p)
|
|||
/* Handle case where text has not changed, only point, and it has
|
||||
not moved off the frame, and we are not retrying after hscroll.
|
||||
(current_matrix_up_to_date_p is nonzero when retrying.) */
|
||||
if (current_matrix_up_to_date_p)
|
||||
if (current_matrix_up_to_date_p
|
||||
&& (rc = try_cursor_movement (window, startp, &temp_scroll_step),
|
||||
rc != CURSOR_MOVEMENT_CANNOT_BE_USED))
|
||||
{
|
||||
int rc = try_cursor_movement (window, startp, &temp_scroll_step);
|
||||
|
||||
switch (rc)
|
||||
{
|
||||
case CURSOR_MOVEMENT_CANNOT_BE_USED:
|
||||
break;
|
||||
|
||||
case CURSOR_MOVEMENT_SUCCESS:
|
||||
used_current_matrix_p = 1;
|
||||
goto done;
|
||||
|
|
Loading…
Add table
Reference in a new issue