do not include all whitespace lines in vim paragraphs
This commit is contained in:
parent
64eaf47c4d
commit
acd41efcb6
1 changed files with 1 additions and 1 deletions
|
|
@ -4095,7 +4095,7 @@ dom.importCssString(".normal-mode .ace_cursor{\
|
|||
var min = cm.firstLine();
|
||||
var max = cm.lastLine();
|
||||
var start, end, i = line;
|
||||
function isEmpty(i) { return !cm.getLine(i); }
|
||||
function isEmpty(i) { return !/\S/.test(cm.getLine(i)); }
|
||||
function isBoundary(i, dir, any) {
|
||||
if (any) { return isEmpty(i) != isEmpty(i + dir); }
|
||||
return !isEmpty(i) && isEmpty(i + dir);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue