We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
x > 0
1 parent a045668 commit bf774c0Copy full SHA for bf774c0
lib/reline/ansi.rb
@@ -266,15 +266,15 @@ def self.move_cursor_column(x)
266
267
def self.move_cursor_up(x)
268
if x > 0
269
- @@output.write "\e[#{x}A" if x > 0
+ @@output.write "\e[#{x}A"
270
elsif x < 0
271
move_cursor_down(-x)
272
end
273
274
275
def self.move_cursor_down(x)
276
277
- @@output.write "\e[#{x}B" if x > 0
+ @@output.write "\e[#{x}B"
278
279
move_cursor_up(-x)
280
0 commit comments