diff options
author | aycabta <aycabta@gmail.com> | 2019-05-28 05:10:49 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-05-28 05:10:49 +0900 |
commit | 74c88e7cda8640084077003ec00b004f9dd7ae73 (patch) | |
tree | f124e9c2f83356fe558b2d4b1cffe8c57c60b134 /lib | |
parent | f6b62d8fe77a474935ef3dee6bb20ca3cc4da602 (diff) |
Fix reversed row and column get_screen_size on Windows
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline/windows.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 36bd8dcc45..280807dc76 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -114,7 +114,7 @@ class Reline::Windows def self.get_screen_size csbi = 0.chr * 24 @@GetConsoleScreenBufferInfo.call(@@hConsoleHandle, csbi) - csbi[0, 4].unpack('SS') + csbi[0, 4].unpack('SS').reverse end def self.cursor_pos |