finish implementing selection
This commit is contained in:
@@ -88,11 +88,12 @@ main :: proc() {
|
|||||||
char := chars[0]
|
char := chars[0]
|
||||||
// TODO: selection
|
// TODO: selection
|
||||||
if selection.active {
|
if selection.active {
|
||||||
|
delete_selection()
|
||||||
} else {
|
selection.active = false
|
||||||
inject_at(&lines[cursor.line], cursor.char, char)
|
|
||||||
cursor.char += 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inject_at(&lines[cursor.line], cursor.char, char)
|
||||||
|
cursor.char += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
move_cursor()
|
move_cursor()
|
||||||
|
|||||||
Reference in New Issue
Block a user