diff --git a/internal/buffer/eventhandler.go b/internal/buffer/eventhandler.go index f1fe2a0750..80cb86e31f 100644 --- a/internal/buffer/eventhandler.go +++ b/internal/buffer/eventhandler.go @@ -293,7 +293,7 @@ func (eh *EventHandler) UndoOneEvent() { // Set the cursor in the right place teCursor := t.C if teCursor.Num >= 0 && teCursor.Num < len(eh.cursors) { - t.C = *eh.cursors[teCursor.Num] + //@ t.C = *eh.cursors[teCursor.Num] eh.cursors[teCursor.Num].Goto(teCursor) eh.cursors[teCursor.Num].NewTrailingWsY = teCursor.NewTrailingWsY } else { @@ -338,7 +338,7 @@ func (eh *EventHandler) RedoOneEvent() { teCursor := t.C if teCursor.Num >= 0 && teCursor.Num < len(eh.cursors) { - t.C = *eh.cursors[teCursor.Num] + //@ t.C = *eh.cursors[teCursor.Num] eh.cursors[teCursor.Num].Goto(teCursor) eh.cursors[teCursor.Num].NewTrailingWsY = teCursor.NewTrailingWsY } else { diff --git a/internal/display/infowindow.go b/internal/display/infowindow.go index 096c8d334d..d6d29e5589 100644 --- a/internal/display/infowindow.go +++ b/internal/display/infowindow.go @@ -178,7 +178,10 @@ func (i *InfoWindow) displayBuffer() { } } -var keydisplay = []string{"^Q Quit, ^S Save, ^O Open, ^G Help, ^E Command Bar, ^K Cut Line", "^F Find, ^Z Undo, ^Y Redo, ^A Select All, ^D Duplicate Line, ^T New Tab"} +//var keydisplay = []string{"^Q Quit, ^S Save, ^O Open, ^G Help, ^E Command Bar, ^K Cut Line", "^F Find, ^Z Undo, ^Y Redo, ^A Select All, ^D Duplicate Line, ^T New Tab"} +//@ ^D Duplicate Line +var keydisplay = []string{"^X Quit, ^S Save, ^O Open, ^T New Tab, F5/6 CMD/SH, ^K/C|J Cut/Copy, ^G/D Goto/Del Line", + "^F Find, ^Z Undo, ^Y Redo, ^A Mark All, ^/ Comment, ^V|U Paste, ^I Find Text"} func (i *InfoWindow) displayKeyMenu() { // TODO: maybe make this based on the actual keybindings