Skip to content

Commit 8d924fd

Browse files
authored
Merge pull request #1372 from Shooter23/patch-1
Surround word with "\\<" and "\\>" for search_current().
2 parents 51cacf2 + 8a6e06f commit 8d924fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vimode/src/cmds/special.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static void search_current(CmdContext *c, CmdParams *p, gboolean next)
9494
else
9595
{
9696
const gchar *prefix = next ? "/" : "?";
97-
c->search_text = g_strconcat(prefix, word, NULL);
97+
c->search_text = g_strconcat(prefix, "\\<", word, "\\>", NULL);
9898
}
9999
g_free(word);
100100

0 commit comments

Comments
 (0)