mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
commit
6d45309797
@ -3015,21 +3015,21 @@ current_block (
|
|||||||
}
|
}
|
||||||
curwin->w_cursor = *end_pos;
|
curwin->w_cursor = *end_pos;
|
||||||
|
|
||||||
/*
|
// Try to exclude the '(', '{', ')', '}', etc. when "include" is FALSE.
|
||||||
* Try to exclude the '(', '{', ')', '}', etc. when "include" is FALSE.
|
// If the ending '}', ')' or ']' is only preceded by indent, skip that
|
||||||
* If the ending '}' is only preceded by indent, skip that indent.
|
// indent. But only if the resulting area is not smaller than what we
|
||||||
* But only if the resulting area is not smaller than what we started with.
|
// started with.
|
||||||
*/
|
|
||||||
while (!include) {
|
while (!include) {
|
||||||
incl(&start_pos);
|
incl(&start_pos);
|
||||||
sol = (curwin->w_cursor.col == 0);
|
sol = (curwin->w_cursor.col == 0);
|
||||||
decl(&curwin->w_cursor);
|
decl(&curwin->w_cursor);
|
||||||
if (what == '{')
|
while (inindent(1)) {
|
||||||
while (inindent(1)) {
|
sol = TRUE;
|
||||||
sol = TRUE;
|
if (decl(&curwin->w_cursor) != 0) {
|
||||||
if (decl(&curwin->w_cursor) != 0)
|
break;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* In Visual mode, when the resulting area is not bigger than what we
|
* In Visual mode, when the resulting area is not bigger than what we
|
||||||
* started with, extend it to the next block, and then exclude again.
|
* started with, extend it to the next block, and then exclude again.
|
||||||
|
@ -221,7 +221,7 @@ static int included_patches[] = {
|
|||||||
331,
|
331,
|
||||||
//330,
|
//330,
|
||||||
//329,
|
//329,
|
||||||
//328,
|
328,
|
||||||
327,
|
327,
|
||||||
//326,
|
//326,
|
||||||
//325,
|
//325,
|
||||||
|
Loading…
Reference in New Issue
Block a user