This commit is contained in:
Kartik K. Agaram 2022-08-04 12:34:46 -07:00
parent b6b99a55c9
commit 0b618be0af
2 changed files with 4 additions and 4 deletions

View File

@ -322,7 +322,7 @@ function run_command(cmd, args)
elseif cmd == 'back to surface' then
command.back_to_surface()
elseif cmd == 'edit note' or cmd == 'edit note at cursor' then
command.edit_note_at_cursor()
command.edit_note()
elseif cmd == 'exit editing' then
command.exit_editing()
elseif cmd == 'close column surrounding cursor' then
@ -425,7 +425,7 @@ function command.close_column_surrounding_cursor()
end
end
function command.edit_note_at_cursor()
function command.edit_note()
local pane = Surface[Cursor_pane.col][Cursor_pane.row]
assert(not pane.editable)
stop_editing_all()

View File

@ -691,7 +691,7 @@ function keychord_pressed_in_maximize_mode(chord, key)
end
else
if chord == 'C-e' then
command.edit_note_at_cursor()
command.edit_note()
elseif chord == 'C-c' then
edit.keychord_pressed(pane, chord, key)
end
@ -739,7 +739,7 @@ function keychord_pressed_in_normal_mode_with_immutable_pane(pane, chord, key)
return
end
if chord == 'C-e' then
command.edit_note_at_cursor()
command.edit_note()
elseif chord == 'C-c' then
edit.keychord_pressed(pane, chord, key)
else