mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
Add stackundo option
This commit is contained in:
@@ -118,6 +118,10 @@ func (eh *EventHandler) Undo() {
|
||||
undoThreshold := int64(settings["undothreshold"].(float64))
|
||||
if startTime-(te.time.UnixNano()/int64(time.Millisecond)) > undoThreshold {
|
||||
return
|
||||
} else {
|
||||
if settings["stackundo"] == true {
|
||||
startTime = t.(*TextEvent).time.UnixNano() / int64(time.Millisecond)
|
||||
}
|
||||
}
|
||||
|
||||
eh.UndoOneEvent()
|
||||
|
||||
Reference in New Issue
Block a user