Skip to content

Commit

Permalink
Do not show current word to find in completion list
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Wootten authored and Jeremy Wootten committed Nov 26, 2024
1 parent 12100cb commit 3654d60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/word-completion/engine.vala
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public class Euclide.Completion.Parser : GLib.Object {

public bool get_for_word (string to_find, out List<string> list) {
list = prefix_tree.get_all_matches (to_find);
list.remove_link (list.find_custom (to_find, strcmp));
return list.first () != null;
}

Expand Down

0 comments on commit 3654d60

Please sign in to comment.