mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 18:07:51 +08:00
16 lines
291 B
Go
16 lines
291 B
Go
package edcore
|
|
|
|
import "github.com/elves/elvish/edit/eddefs"
|
|
|
|
func (ed *editor) SetAction(action eddefs.Action) {
|
|
if ed.nextAction == noAction {
|
|
ed.nextAction = action
|
|
}
|
|
}
|
|
|
|
func (ed *editor) popAction() eddefs.Action {
|
|
action := ed.nextAction
|
|
ed.nextAction = noAction
|
|
return action
|
|
}
|