File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -541,6 +541,7 @@ def dialog_proc=(p)
541
541
old_dialog_updown = @dialog_updown
542
542
if result and not result . empty?
543
543
@dialog_contents = result
544
+ @dialog_contents = @dialog_contents [ 0 ...DIALOG_HEIGHT ] if @dialog_contents . size > DIALOG_HEIGHT
544
545
@dialog_contents_width = @dialog_contents . map { |c | calculate_width ( c ) }
545
546
else
546
547
clear_dialog
@@ -577,7 +578,6 @@ def dialog_proc=(p)
577
578
when :up
578
579
end
579
580
Reline ::IOGate . move_cursor_column ( @dialog_column )
580
- @dialog_contents = @dialog_contents [ 0 ...DIALOG_HEIGHT ] if @dialog_contents . size > DIALOG_HEIGHT
581
581
@dialog_contents . each_with_index do |item , i |
582
582
@output . write "\e [46m%-#{ DIALOG_WIDTH } s\e [49m" % item . slice ( 0 , DIALOG_WIDTH )
583
583
Reline ::IOGate . move_cursor_column ( @dialog_column )
You can’t perform that action at this time.
0 commit comments