Branch: refs/heads/master Author: pcworld 0188801@gmail.com Committer: Jiří Techet techet@gmail.com Date: Wed, 25 Apr 2018 13:02:38 UTC Commit: 17833ef60572c228b53553fb6a70158fe96c026b https://github.com/geany/geany-plugins/commit/17833ef60572c228b53553fb6a7015...
Log Message: ----------- vimode: % searches for first suitable character
:help % specifies:
Find the next item in this line after or under the cursor and jump to its match.
Modified Paths: -------------- vimode/src/cmds/motion.c
Modified: vimode/src/cmds/motion.c 14 lines changed, 11 insertions(+), 3 deletions(-) =================================================================== @@ -353,9 +353,17 @@ void cmd_goto_column(CmdContext *c, CmdParams *p)
void cmd_goto_matching_brace(CmdContext *c, CmdParams *p) { - gint pos = SSM(p->sci, SCI_BRACEMATCH, p->pos, 0); - if (pos != -1) - SET_POS(p->sci, pos, TRUE); + gint pos = p->pos; + while (pos < p->line_end_pos) + { + gint matching_pos = SSM(p->sci, SCI_BRACEMATCH, pos, 0); + if (matching_pos != -1) + { + SET_POS(p->sci, matching_pos, TRUE); + return; + } + pos++; + } }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org