Skip to content

Commit

Permalink
Merge pull request #1372 from Shooter23/patch-1
Browse files Browse the repository at this point in the history
Surround word with "\\<" and "\\>" for search_current().
  • Loading branch information
techee authored Nov 24, 2024
2 parents 51cacf2 + 8a6e06f commit 8d924fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimode/src/cmds/special.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static void search_current(CmdContext *c, CmdParams *p, gboolean next)
else
{
const gchar *prefix = next ? "/" : "?";
c->search_text = g_strconcat(prefix, word, NULL);
c->search_text = g_strconcat(prefix, "\\<", word, "\\>", NULL);
}
g_free(word);

Expand Down

0 comments on commit 8d924fd

Please sign in to comment.