]> git.eshelyaron.com Git - emacs.git/commit
Fix mouse clicks on links under 'global-display-line-numbers-mode'
authorEli Zaretskii <eliz@gnu.org>
Sat, 21 Oct 2023 10:53:21 +0000 (13:53 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 21 Oct 2023 10:53:21 +0000 (13:53 +0300)
commite57b19b4007336c8f85f0dae0d4125d096d3d1f4
treef0ac6970bc3c572c10a9be42bf78ba709ddbecad
parente6f05e189db73a0f0b29f987381ffef61a409232
Fix mouse clicks on links under 'global-display-line-numbers-mode'

* src/indent.c (line_number_display_width): No longer static.
* src/lisp.h (line_number_display_width): Add prototype.
* src/keyboard.c (save_line_number_display_width)
(line_number_mode_hscroll): New functions.
(make_lispy_event): Call 'save_line_number_display_width' and
'line_number_mode_hscroll' to avoid interpreting up-event as drag
event when redisplay scrolls the text horizontally between the
down- and up-event to account for the changed width of the
line-number display.  (Bug#66655)
src/indent.c
src/keyboard.c
src/lisp.h