improve input feedback by discarding unreachable hints

This commit is contained in:
Jorge Morante 2023-10-28 10:39:04 +02:00
parent 6ad4c5530e
commit b154d4800f
2 changed files with 5 additions and 1 deletions

View File

@ -112,6 +112,10 @@ module Fingers
hints_by_text[captured_text] = hint
end
if !state.input.empty? && !hint.starts_with?(state.input)
return text
end
formatter.format(
hint: hint,
highlight: text,

View File

@ -73,7 +73,7 @@ module Fingers
if match
handle_match(match)
else
tmux.display_message(state.input, 300)
render
end
end