summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-18 17:50:12 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-18 17:50:12 +0000
commit615cf436d5ead40ca30f695544a9436fafa8aa3b (patch)
treeaad3331a07324d7e079b8f25bcd98d0ac4b6f48f
parent5c1b949330b8020701d5526654cae25e148341f3 (diff)
downloademacs-615cf436d5ead40ca30f695544a9436fafa8aa3b.tar.gz
(direct_output_forward_char): Reenable check against
truncated text at end of line.
-rw-r--r--src/dispnew.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 239db35e737..9af8b1a41e7 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1,5 +1,6 @@
/* Updating of data structures for redisplay.
- Copyright (C) 1985, 86, 87, 88, 93, 94, 95 Free Software Foundation, Inc.
+ Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 1997
+ Free Software Foundation, Inc.
This file is part of GNU Emacs.
@@ -1117,14 +1118,12 @@ direct_output_forward_char (n)
register FRAME_PTR frame = selected_frame;
register struct window *w = XWINDOW (selected_window);
Lisp_Object position;
- /* This check is redundant. It's checked at "losing cursor" below. */
-#if 0
int hpos = FRAME_CURSOR_X (frame);
/* Give up if in truncated text at end of line. */
+ /* This check is not redundant. */
if (hpos >= WINDOW_LEFT_MARGIN (w) + window_internal_width (w) - 1)
return 0;
-#endif /* 0 */
/* Give up if the buffer's direction is reversed (i.e. right-to-left). */
if (!NILP (XBUFFER(w->buffer)->direction_reversed))