fix #1840 The last CJK character of a wrapped line drops down

This commit is contained in:
nightwing 2014-09-05 23:53:16 +04:00
commit 36f62e3792

View file

@ -1958,6 +1958,8 @@ var EditSession = function(text, mode) {
split = lastSplit + wrapLimit;
// The split is inside of a CHAR or CHAR_EXT token and no space
// around -> force a split.
if (tokens[split] == CHAR_EXT)
split--;
addSplit(split);
}
return splits;