From ccfb12d76ca58957cb95692594626169a97224b7 Mon Sep 17 00:00:00 2001 From: aycabta Date: Tue, 28 May 2019 11:02:44 +0900 Subject: [PATCH] Fix condition..."and" is lowest priority operator, than "=" --- lib/reline/windows.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])