mirror of
https://github.com/felixangell/phi.git
synced 2024-08-16 11:10:37 +03:00
more text selection semantic cleanups
This commit is contained in:
parent
619bb38ae8
commit
6d5a4c2610
@ -791,16 +791,13 @@ func (b *Buffer) processSelection(key int) bool {
|
||||
break
|
||||
case sdl.K_UP:
|
||||
lastSelection.ey--
|
||||
lineLen := b.table.Lines[lastSelection.ey].Len()
|
||||
lastSelection.ex = lineLen
|
||||
b.moveUp()
|
||||
b.moveToEndOfLine()
|
||||
lastSelection.ex = b.curs.x
|
||||
break
|
||||
case sdl.K_DOWN:
|
||||
lastSelection.ey++
|
||||
lastSelection.ex = 0
|
||||
|
||||
b.moveDown()
|
||||
lastSelection.ex = b.curs.x
|
||||
break
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user