Add bind and unbind commands

This commit is contained in:
Zachary Yedidia
2019-01-14 16:09:46 -05:00
parent 5825353f64
commit eb49052a48
3 changed files with 71 additions and 1 deletions

View File

@@ -558,6 +558,9 @@ func (h *BufHandler) InsertTab() bool {
// SaveAll saves all open buffers
func (h *BufHandler) SaveAll() bool {
for _, b := range buffer.OpenBuffers {
b.Save()
}
return false
}
@@ -672,7 +675,6 @@ func (h *BufHandler) Undo() bool {
// Redo redoes the last action
func (h *BufHandler) Redo() bool {
// TODO: clear cursors and message
h.Buf.Redo()
InfoBar.Message("Redid action")
return true