[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 20ef15f: Fix a typo in xterm.c and w32term.c
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master 20ef15f: Fix a typo in xterm.c and w32term.c |
Date: |
Mon, 1 Apr 2019 10:40:07 -0400 (EDT) |
branch: master
commit 20ef15fbe6d49b0bb8a1841dbe4665cf81a567d7
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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.
---
src/w32term.c | 2 +-
src/xterm.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/w32term.c b/src/w32term.c
index 4d5f2e7..7dbeda7 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -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);
diff --git a/src/xterm.c b/src/xterm.c
index f90d671..2f830af 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 20ef15f: Fix a typo in xterm.c and w32term.c,
Eli Zaretskii <=