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:
parent
7f211bfe6c
commit
ccfb12d76c
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Reference in a new issue