summaryrefslogtreecommitdiff
path: root/lib/reline.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-08-28 02:10:51 +0900
committeraycabta <aycabta@gmail.com>2021-08-29 20:30:33 +0900
commitacd15a39d23e59b7f6434de462010d137a442a36 (patch)
tree0f6c090e91f89bb55ea355d592957e6ae29b8277 /lib/reline.rb
parent7ea46c1ef25ef04f7714c59a0ee5a8eb27d1728a (diff)
[ruby/reline] Support custom bg color
https://github.com/ruby/reline/commit/cd0cbf53d5
Diffstat (limited to 'lib/reline.rb')
-rw-r--r--lib/reline.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reline.rb b/lib/reline.rb
index fea0498dfb..b32d07bd25 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -211,7 +211,7 @@ module Reline
cursor_pos_to_render = Reline::CursorPos.new(x, y)
context.clear
context.push(cursor_pos_to_render, result, pointer)
- [cursor_pos_to_render, result, pointer]
+ [cursor_pos_to_render, result, pointer, nil]
}
require 'rdoc'
@@ -247,7 +247,7 @@ module Reline
formatter.width = 40
str = doc.accept(formatter)
- [Reline::CursorPos.new(cursor_pos_to_render.x + 40, cursor_pos_to_render.y + pointer), str.split("\n"), nil]
+ [Reline::CursorPos.new(cursor_pos_to_render.x + 40, cursor_pos_to_render.y + pointer), str.split("\n"), nil, '40']
}
def readmultiline(prompt = '', add_hist = false, &confirm_multiline_termination)