mirror of
https://github.com/felixangell/phi.git
synced 2024-09-11 15:55:25 +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
|
break
|
||||||
case sdl.K_UP:
|
case sdl.K_UP:
|
||||||
lastSelection.ey--
|
lastSelection.ey--
|
||||||
lineLen := b.table.Lines[lastSelection.ey].Len()
|
|
||||||
lastSelection.ex = lineLen
|
|
||||||
b.moveUp()
|
b.moveUp()
|
||||||
b.moveToEndOfLine()
|
lastSelection.ex = b.curs.x
|
||||||
break
|
break
|
||||||
case sdl.K_DOWN:
|
case sdl.K_DOWN:
|
||||||
lastSelection.ey++
|
lastSelection.ey++
|
||||||
lastSelection.ex = 0
|
|
||||||
|
|
||||||
b.moveDown()
|
b.moveDown()
|
||||||
|
lastSelection.ex = b.curs.x
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user