mirror of https://github.com/buggins/dlangui.git
editor fixes
This commit is contained in:
parent
7aca03e94f
commit
e9ecc3b26c
|
@ -571,7 +571,7 @@ class EditableContent {
|
||||||
// forward
|
// forward
|
||||||
if (p.pos >= linelen) {
|
if (p.pos >= linelen) {
|
||||||
// last position of line
|
// last position of line
|
||||||
if (p.line < length)
|
if (p.line < length - 1)
|
||||||
p = firstNonSpace(p.line + 1);
|
p = firstNonSpace(p.line + 1);
|
||||||
} else if (p.pos >= lastns.pos) { // before first nonspace
|
} else if (p.pos >= lastns.pos) { // before first nonspace
|
||||||
// to beginning of line
|
// to beginning of line
|
||||||
|
|
Loading…
Reference in New Issue