Skip to content

Commit

Permalink
Remove an unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Dec 17, 2019
1 parent 4f957f6 commit db64989
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,6 @@ def finish
loop do
key = Fiber.yield(search_word)
search_again = false
change_direction = false
case key
when -1 # determined
Reline.last_incremental_search = search_word
Expand All @@ -1210,11 +1209,7 @@ def finish
search_word = grapheme_clusters.join
end
when "\C-r".ord, "\C-s".ord
if prev_search_key == key
search_again = true
else
change_direction = true
end
search_again = true if prev_search_key == key
prev_search_key = key
else
multibyte_buf << key
Expand Down

0 comments on commit db64989

Please sign in to comment.