forked from aniani/vim
patch 9.0.2188: cursor wrong after { in single line buffer
Problem: cursor wrong after { in single line buffer (Edwin Chan) Solution: do not place the cursor at the end for a single line buffer when moving backwards (Gary Johnson) closes: #13780 closes: #13783 Signed-off-by: Gary Johnson <garyjohn@spocom.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
23627722d3
commit
9e6549d2fb
@@ -226,7 +226,7 @@ findpar(
|
||||
if (both && *ml_get(curr) == '}') // include line with '}'
|
||||
++curr;
|
||||
curwin->w_cursor.lnum = curr;
|
||||
if (curr == curbuf->b_ml.ml_line_count && what != '}')
|
||||
if (curr == curbuf->b_ml.ml_line_count && what != '}' && dir == FORWARD)
|
||||
{
|
||||
char_u *line = ml_get(curr);
|
||||
|
||||
|
Reference in New Issue
Block a user