mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
; * src/keyboard.c (line_number_mode_hscroll): Fix last change.
This commit is contained in:
parent
2fb4108ab7
commit
1b2083c2f3
1 changed files with 3 additions and 2 deletions
|
|
@ -5961,7 +5961,8 @@ line_number_mode_hscroll (Lisp_Object start_pos, Lisp_Object end_pos)
|
|||
Lisp_Object start_col_row = Fnth (make_fixnum (6), start_pos);
|
||||
Lisp_Object end_col_row = Fnth (make_fixnum (6), end_pos);
|
||||
Lisp_Object window = Fcar (end_pos);
|
||||
int col_width, pixel_width, start_col, end_col;
|
||||
int col_width, pixel_width;
|
||||
Lisp_Object start_col, end_col;
|
||||
struct window *w;
|
||||
if (!WINDOW_VALID_P (window))
|
||||
{
|
||||
|
|
@ -5974,7 +5975,7 @@ line_number_mode_hscroll (Lisp_Object start_pos, Lisp_Object end_pos)
|
|||
line_number_display_width (w, &col_width, &pixel_width);
|
||||
start_col = Fcar (start_col_row);
|
||||
end_col = Fcar (end_col_row);
|
||||
return start_col == end_col
|
||||
return EQ (start_col, end_col)
|
||||
&& down_mouse_line_number_width >= 0
|
||||
&& col_width != down_mouse_line_number_width;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue