diff options
author | aycabta <aycabta@gmail.com> | 2021-08-31 05:50:15 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-08-31 15:20:17 +0900 |
commit | cf0ece810a72157437a76679bf22f7856afc16ca (patch) | |
tree | d026291c737a182f0d2f3ed3e3c7bb16bde6021e | |
parent | 7afb5b8b95c7eadb5e776590566d0430d62e62f9 (diff) |
[ruby/irb] Rename a variable "dialog" with "autocomplete_dialog"
Because it's just used to receive data from the autocomplete dialog, not
for show doc dialog.
https://github.com/ruby/irb/commit/f8b752bd98
-rw-r--r-- | lib/irb/input-method.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 911416a590..f7a4fbab77 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -322,7 +322,7 @@ module IRB if just_cursor_moving and completion_journey_data.nil? return nil end - cursor_pos_to_render, result, pointer, dialog = context.pop(4) + cursor_pos_to_render, result, pointer, autocomplete_dialog = context.pop(4) return nil if result.nil? or pointer.nil? or pointer < 0 name = result[pointer] name = IRB::InputCompletor.retrieve_completion_data(name, doc_namespace: true) @@ -360,7 +360,7 @@ module IRB str = doc.accept(formatter) x = cursor_pos_to_render.x + 40 - y = cursor_pos_to_render.y + pointer - dialog.scroll_top + y = cursor_pos_to_render.y + pointer - autocomplete_dialog.scroll_top DialogRenderInfo.new(pos: Reline::CursorPos.new(x, y), contents: str.split("\n"), bg_color: '49') } |