Get undo working properly with multiple cursors

This commit is contained in:
Zachary Yedidia
2017-06-16 22:19:33 -04:00
parent 21840d3ffe
commit f933b90c66
5 changed files with 52 additions and 25 deletions

View File

@@ -21,6 +21,9 @@ type Cursor struct {
// This is used for line and word selection where it is necessary
// to know what the original selection was
OrigSelection [2]Loc
// Which cursor index is this (for multiple cursors)
Num int
}
// Goto puts the cursor at the given cursor's location and gives the current cursor its selection too