fix #1840 The last CJK character of a wrapped line drops down
This commit is contained in:
parent
badade8f4e
commit
36f62e3792
1 changed files with 2 additions and 0 deletions
|
|
@ -1958,6 +1958,8 @@ var EditSession = function(text, mode) {
|
||||||
split = lastSplit + wrapLimit;
|
split = lastSplit + wrapLimit;
|
||||||
// The split is inside of a CHAR or CHAR_EXT token and no space
|
// The split is inside of a CHAR or CHAR_EXT token and no space
|
||||||
// around -> force a split.
|
// around -> force a split.
|
||||||
|
if (tokens[split] == CHAR_EXT)
|
||||||
|
split--;
|
||||||
addSplit(split);
|
addSplit(split);
|
||||||
}
|
}
|
||||||
return splits;
|
return splits;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue