changeset 2794:9163e4e4752c

(direct_output_forward_char): Just give up if region is being highlighted. (direct_output_for_insert): Pass those args.
author Richard M. Stallman <rms@gnu.org>
date Sat, 15 May 1993 18:44:46 +0000
parents b88e105bdbf7
children e97e96fb0cb8
files src/dispnew.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Sat May 15 18:05:42 1993 +0000
+++ b/src/dispnew.c	Sat May 15 18:44:46 1993 +0000
@@ -878,7 +878,7 @@
   {
 #ifdef HAVE_X_WINDOWS
     int dummy;
-    int face = compute_char_face (frame, w, point, &dummy);
+    int face = compute_char_face (frame, w, point, -1, -1, &dummy);
 #else
     int face = 0;
 #endif
@@ -920,6 +920,10 @@
       || cursor_in_echo_area)
     return 0;
 
+  /* Can't use direct output if highlighting a region.  */
+  if (!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active))
+    return 0;
+
   FRAME_CURSOR_X (frame) += n;
   XFASTINT (w->last_point_x) = FRAME_CURSOR_X (frame);
   XFASTINT (w->last_point) = point;