1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Remove an unnecessary variable

This commit is contained in:
aycabta 2019-12-17 14:20:51 +09:00
parent 8f52604b47
commit d616926af9

View file

@ -1198,7 +1198,6 @@ class Reline::LineEditor
loop do
key = Fiber.yield(search_word)
search_again = false
change_direction = false
case key
when -1 # determined
Reline.last_incremental_search = search_word
@ -1210,11 +1209,7 @@ class Reline::LineEditor
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