do not include all whitespace lines in vim paragraphs

This commit is contained in:
nightwing 2015-01-23 13:36:06 +04:00
commit acd41efcb6

View file

@ -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);