Skip to content

Commit 2f21d1e

Browse files
authored
[DOC] Fix spelling
ruby/ruby@afacb8a
1 parent 546a425 commit 2f21d1e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/reline/line_editor.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,9 +2368,9 @@ def finish
23682368

23692369
private def search_next_char(key, arg, need_prev_char: false, inclusive: false)
23702370
if key.instance_of?(String)
2371-
inputed_char = key
2371+
inputted_char = key
23722372
else
2373-
inputed_char = key.chr
2373+
inputted_char = key.chr
23742374
end
23752375
prev_total = nil
23762376
total = nil
@@ -2382,7 +2382,7 @@ def finish
23822382
width = Reline::Unicode.get_mbchar_width(mbchar)
23832383
total = [mbchar.bytesize, width]
23842384
else
2385-
if inputed_char == mbchar
2385+
if inputted_char == mbchar
23862386
arg -= 1
23872387
if arg.zero?
23882388
found = true
@@ -2420,9 +2420,9 @@ def finish
24202420

24212421
private def search_prev_char(key, arg, need_next_char = false)
24222422
if key.instance_of?(String)
2423-
inputed_char = key
2423+
inputted_char = key
24242424
else
2425-
inputed_char = key.chr
2425+
inputted_char = key.chr
24262426
end
24272427
prev_total = nil
24282428
total = nil
@@ -2434,7 +2434,7 @@ def finish
24342434
width = Reline::Unicode.get_mbchar_width(mbchar)
24352435
total = [mbchar.bytesize, width]
24362436
else
2437-
if inputed_char == mbchar
2437+
if inputted_char == mbchar
24382438
arg -= 1
24392439
if arg.zero?
24402440
found = true

test/reline/test_key_actor_emacs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def test_ed_clear_screen
260260
assert_empty(@line_editor.instance_variable_get(:@rendered_screen).lines)
261261
end
262262

263-
def test_ed_clear_screen_with_inputed
263+
def test_ed_clear_screen_with_inputted
264264
input_keys('abc')
265265
input_keys("\C-b", false)
266266
@line_editor.instance_variable_get(:@rendered_screen).lines = [[]]

0 commit comments

Comments
 (0)