changeset 66001:070aaff00398

(make_lispy_position): Fix buffer position calculation for mouse click or movement in fringe.
author Kim F. Storm <storm@cua.dk>
date Mon, 10 Oct 2005 22:50:21 +0000
parents 5d96447d85f4
children f9d092cc84bb
files src/keyboard.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Mon Oct 10 22:50:01 2005 +0000
+++ b/src/keyboard.c	Mon Oct 10 22:50:21 2005 +0000
@@ -5096,6 +5096,7 @@
 	  posn = (part == ON_LEFT_FRINGE) ? Qleft_fringe : Qright_fringe;
 	  rx = 0;
 	  dx = wx;
+	  wx = (part == ON_LEFT_FRINGE) ? 0 : window_box_width (w, TEXT_AREA);
 	  if (part == ON_RIGHT_FRINGE)
 	    dx -= (window_box_width (w, LEFT_MARGIN_AREA)
 		   + window_box_width (w, TEXT_AREA)