Branch: refs/heads/master Author: Shooter23 44271378+Shooter23@users.noreply.github.com Committer: GitHub noreply@github.com Date: Thu, 12 Sep 2024 17:00:55 UTC Commit: 8a6e06f137dc5149485e80e41038b9d0b7d54e48 https://github.com/geany/geany-plugins/commit/8a6e06f137dc5149485e80e41038b9...
Log Message: ----------- Surround word with "\<" and "\>" for search_current().
The crosshatch (#) and asterisk (*) commands in Vim perform exact word searches. For example, with the cursor on "word", the asterisk would perform "/<word>" to search for the next exact occurrence of "word".
Modified Paths: -------------- vimode/src/cmds/special.c
Modified: vimode/src/cmds/special.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -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);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org