# HG changeset patch # User Kim F. Storm # Date 1128984621 0 # Node ID 070aaff00398280ebda9a35044f59a302589512d # Parent 5d96447d85f4c705fc7405bda14de2a364327960 (make_lispy_position): Fix buffer position calculation for mouse click or movement in fringe. diff -r 5d96447d85f4 -r 070aaff00398 src/keyboard.c --- 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)