summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortomoya ishida <tomoyapenguin@gmail.com>2024-05-11 02:19:38 +0900
committergit <svn-admin@ruby-lang.org>2024-05-10 17:19:42 +0000
commit68b6fe70484b1fed2767fc9b838a487aa47d3560 (patch)
tree147e1c3ddccc1d7fa80cb93d261f57ae1ff866bd /lib
parent3ec5a9325fe86f65326dcc8746db80a3982e7b80 (diff)
[ruby/reline] Avoid STDIN.winsize called in `require "reline"`
(https://github.com/ruby/reline/pull/703) https://github.com/ruby/reline/commit/21891c47c4
Diffstat (limited to 'lib')
-rw-r--r--lib/reline/line_editor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 9e221f4c9c..4c76932c10 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -75,7 +75,7 @@ class Reline::LineEditor
def initialize(config, encoding)
@config = config
@completion_append_character = ''
- @screen_size = Reline::IOGate.get_screen_size
+ @screen_size = [0, 0] # Should be initialized with actual winsize in LineEditor#reset
reset_variables(encoding: encoding)
end