aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-02-10 08:12:22 +0000
committerJim Blandy1992-02-10 08:12:22 +0000
commita9764248b799e25c9d3d7143b28315182debe4f5 (patch)
tree5d76cef4dcddbdfde87e2c56c011a6537fa195c4 /src
parent43a2e52c06534ecdb7c5240c8c402b50647f31cc (diff)
downloademacs-a9764248b799e25c9d3d7143b28315182debe4f5.tar.gz
emacs-a9764248b799e25c9d3d7143b28315182debe4f5.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c11
-rw-r--r--src/indent.c6
2 files changed, 12 insertions, 5 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 31e5590f35d..71253511546 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -948,8 +948,15 @@ direct_output_forward_char (n)
948 register SCREEN_PTR screen = selected_screen; 948 register SCREEN_PTR screen = selected_screen;
949 register struct window *w = XWINDOW (selected_window); 949 register struct window *w = XWINDOW (selected_window);
950 950
951 /* Avoid losing if cursor is in invisible text off left margin */ 951 /* Avoid losing if cursor is in invisible text off left margin
952 if (XINT (w->hscroll) && SCREEN_CURSOR_X (screen) == XFASTINT (w->left)) 952 or about to go off either side of window. */
953 if ((SCREEN_CURSOR_X (screen) == XFASTINT (w->left)
954 && (XINT (w->hscroll) || n < 0))
955 || (n > 0
956 && (SCREEN_CURSOR_X (screen) + 1
957 >= (XFASTINT (w->left) + XFASTINT (w->width)
958 - (XFASTINT (w->width) < SCREEN_WIDTH (screen))
959 - 1))))
953 return 0; 960 return 0;
954 961
955 SCREEN_CURSOR_X (screen) += n; 962 SCREEN_CURSOR_X (screen) += n;
diff --git a/src/indent.c b/src/indent.c
index a48877d84ce..f87ca13192a 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -373,9 +373,9 @@ struct position val_compute_motion;
373 compute_motion uses this to handle continuation lines and such. 373 compute_motion uses this to handle continuation lines and such.
374 HSCROLL is the number of columns not being displayed at the left 374 HSCROLL is the number of columns not being displayed at the left
375 margin; this is usually taken from a window's hscroll member. 375 margin; this is usually taken from a window's hscroll member.
376 TAB_OFFSET is a mysterious value, perhaps the number of columns of 376 TAB_OFFSET is the number of columns of the first tab that aren't
377 the first tab that aren't being displayed, perhaps because of a 377 being displayed, perhaps because of a continuation line or
378 continuation line or something. 378 something.
379 379
380 compute_motion returns a pointer to a struct position. The bufpos 380 compute_motion returns a pointer to a struct position. The bufpos
381 member gives the buffer position at the end of the scan, and hpos 381 member gives the buffer position at the end of the scan, and hpos