summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-05-28 11:02:44 +0900
committeraycabta <aycabta@gmail.com>2019-05-28 11:03:02 +0900
commitccfb12d76ca58957cb95692594626169a97224b7 (patch)
treea24767bf4fab8e084af361f3be1e46de8002edee /lib
parent7f211bfe6c5e4a763412406e5e257ea275ca53da (diff)
Fix condition..."and" is lowest priority operator, than "="
Diffstat (limited to 'lib')
-rw-r--r--lib/reline/windows.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb
index 280807dc76..7ba28adb5a 100644
--- a/lib/reline/windows.rb
+++ b/lib/reline/windows.rb
@@ -76,7 +76,7 @@ class Reline::Windows
end
input = getwch
alt = (@@GetKeyState.call(VK_MENU) & 0x80) != 0
- shift_enter = (@@GetKeyState.call(VK_SHIFT) & 0x80) != 0 and input.first == 0x0D
+ shift_enter = (@@GetKeyState.call(VK_SHIFT) & 0x80) != 0 && input.first == 0x0D
if shift_enter
# It's treated as Meta+Enter on Windows
@@buf.concat(["\e".ord])