1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix condition..."and" is lowest priority operator, than "="

This commit is contained in:
aycabta 2019-05-28 11:02:44 +09:00
parent 7f211bfe6c
commit ccfb12d76c

View file

@ -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])