Skip to content

Commit

Permalink
[DOC] Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored Oct 12, 2024
1 parent 546a425 commit 2f21d1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2368,9 +2368,9 @@ def finish

private def search_next_char(key, arg, need_prev_char: false, inclusive: false)
if key.instance_of?(String)
inputed_char = key
inputted_char = key
else
inputed_char = key.chr
inputted_char = key.chr
end
prev_total = nil
total = nil
Expand All @@ -2382,7 +2382,7 @@ def finish
width = Reline::Unicode.get_mbchar_width(mbchar)
total = [mbchar.bytesize, width]
else
if inputed_char == mbchar
if inputted_char == mbchar
arg -= 1
if arg.zero?
found = true
Expand Down Expand Up @@ -2420,9 +2420,9 @@ def finish

private def search_prev_char(key, arg, need_next_char = false)
if key.instance_of?(String)
inputed_char = key
inputted_char = key
else
inputed_char = key.chr
inputted_char = key.chr
end
prev_total = nil
total = nil
Expand All @@ -2434,7 +2434,7 @@ def finish
width = Reline::Unicode.get_mbchar_width(mbchar)
total = [mbchar.bytesize, width]
else
if inputed_char == mbchar
if inputted_char == mbchar
arg -= 1
if arg.zero?
found = true
Expand Down
2 changes: 1 addition & 1 deletion test/reline/test_key_actor_emacs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def test_ed_clear_screen
assert_empty(@line_editor.instance_variable_get(:@rendered_screen).lines)
end

def test_ed_clear_screen_with_inputed
def test_ed_clear_screen_with_inputted
input_keys('abc')
input_keys("\C-b", false)
@line_editor.instance_variable_get(:@rendered_screen).lines = [[]]
Expand Down

0 comments on commit 2f21d1e

Please sign in to comment.