mirror of https://github.com/jroimartin/gocui.git
Minor refactoring
This commit is contained in:
parent
e009f09eb8
commit
37e2387e4a
10
edit.go
10
edit.go
|
@ -79,10 +79,12 @@ func (v *View) editDelete(back bool) {
|
|||
v.deleteRune(v.cx-1, v.cy)
|
||||
v.moveCursor(-1, 0, true)
|
||||
}
|
||||
} else if x == len(v.viewLines[y].line) { // end of the line
|
||||
v.mergeLines(v.cy)
|
||||
} else { // middle of the line
|
||||
v.deleteRune(v.cx, v.cy)
|
||||
} else {
|
||||
if x == len(v.viewLines[y].line) { // end of the line
|
||||
v.mergeLines(v.cy)
|
||||
} else { // middle of the line
|
||||
v.deleteRune(v.cx, v.cy)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue