Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vimode: A Vim Mode for Geany #735

Merged
merged 4 commits into from May 28, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 11 additions & 3 deletions vimode/src/cmds/motion.c
Expand Up @@ -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++;
}
}


Expand Down