Skip to content

Commit

Permalink
Merge pull request #748 from pcworld/vimode-gotodown-fix
Browse files Browse the repository at this point in the history
vimode: Fix goto_down with line wrapping
  • Loading branch information
frlan committed Aug 12, 2018
2 parents 6403059 + 59db92a commit c458ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimode/src/cmds/motion.c
Expand Up @@ -78,7 +78,7 @@ static void goto_down(CmdParams *p, gint num)
/* see cmd_goto_up() for explanation */
one_above = p->line + num - 1;
one_above = one_above < last_line ? one_above : last_line - 1;
pos = SSM(p->sci, SCI_POSITIONFROMLINE, one_above, 0);
pos = SSM(p->sci, SCI_GETLINEENDPOSITION, one_above, 0);
SET_POS_NOX(p->sci, pos, FALSE);
SSM(p->sci, SCI_LINEDOWN, 0, 0);
}
Expand Down

0 comments on commit c458ad6

Please sign in to comment.