Fix a typo in xterm.c and w32term.c
* src/xterm.c (x_window_to_scroll_bar): * src/w32term.c (x_window_to_scroll_bar): Fix a typo.
This commit is contained in:
@@ -3690,7 +3690,7 @@ x_window_to_scroll_bar (Window window_id, int type)
|
||||
! NILP (bar));
|
||||
bar = XSCROLL_BAR (bar)->next)
|
||||
if (SCROLL_BAR_W32_WINDOW (XSCROLL_BAR (bar)) == window_id
|
||||
&& (type = 2
|
||||
&& (type == 2
|
||||
|| (type == 1 && XSCROLL_BAR (bar)->horizontal)
|
||||
|| (type == 0 && !XSCROLL_BAR (bar)->horizontal)))
|
||||
return XSCROLL_BAR (bar);
|
||||
|
||||
@@ -5343,7 +5343,7 @@ x_window_to_scroll_bar (Display *display, Window window_id, int type)
|
||||
bar = XSCROLL_BAR (bar)->next)
|
||||
if (XSCROLL_BAR (bar)->x_window == window_id
|
||||
&& FRAME_X_DISPLAY (XFRAME (frame)) == display
|
||||
&& (type = 2
|
||||
&& (type == 2
|
||||
|| (type == 1 && XSCROLL_BAR (bar)->horizontal)
|
||||
|| (type == 0 && !XSCROLL_BAR (bar)->horizontal)))
|
||||
return XSCROLL_BAR (bar);
|
||||
|
||||
Reference in New Issue
Block a user