aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dispnew.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 963cc22cf44..30e1706a720 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -878,7 +878,7 @@ direct_output_for_insert (g)
878 { 878 {
879#ifdef HAVE_X_WINDOWS 879#ifdef HAVE_X_WINDOWS
880 int dummy; 880 int dummy;
881 int face = compute_char_face (frame, w, point, &dummy); 881 int face = compute_char_face (frame, w, point, -1, -1, &dummy);
882#else 882#else
883 int face = 0; 883 int face = 0;
884#endif 884#endif
@@ -920,6 +920,10 @@ direct_output_forward_char (n)
920 || cursor_in_echo_area) 920 || cursor_in_echo_area)
921 return 0; 921 return 0;
922 922
923 /* Can't use direct output if highlighting a region. */
924 if (!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active))
925 return 0;
926
923 FRAME_CURSOR_X (frame) += n; 927 FRAME_CURSOR_X (frame) += n;
924 XFASTINT (w->last_point_x) = FRAME_CURSOR_X (frame); 928 XFASTINT (w->last_point_x) = FRAME_CURSOR_X (frame);
925 XFASTINT (w->last_point) = point; 929 XFASTINT (w->last_point) = point;