Skip to content

Commit 236dfe5

Browse files
committed
fix Reline::Windows.getconsolemode buffer
use double quotes to properly convert the \000 escape sequence.
1 parent eb0760c commit 236dfe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reline/windows.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def call(*args)
103103
ENABLE_VIRTUAL_TERMINAL_PROCESSING = 4
104104

105105
private_class_method def self.getconsolemode
106-
mode = '\000\000\000\000'
106+
mode = "\000\000\000\000"
107107
@@GetConsoleMode.call(@@hConsoleHandle, mode)
108108
mode.unpack1('L')
109109
end

0 commit comments

Comments
 (0)