summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-24 11:32:20 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-24 11:32:20 -0500
commit4aa02183b7f317ca1183b4d3e58ec9da166479d6 (patch)
tree6c03bb12002a4ca9c2f48620fa2a704c41e756de /command.h
parentc101b231458da51767a79fb4b92304b1c76ef5e9 (diff)
big bugfixes
update active_tab properly when a tab is closed, fix Ctrl+O with no buffers open
Diffstat (limited to 'command.h')
-rw-r--r--command.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/command.h b/command.h
index 9824fbf..a74f42a 100644
--- a/command.h
+++ b/command.h
@@ -71,6 +71,9 @@ ENUM_U16 {
CMD_GOTO_DEFINITION, // "go to definition of..."
CMD_GOTO_LINE, // open "goto line..." menu
+
+ CMD_SPLIT_HORIZONTAL,
+ CMD_SPLIT_VERTICAL,
CMD_ESCAPE, // by default this is the escape key. closes menus, etc.
@@ -140,6 +143,8 @@ static CommandName const command_names[CMD_COUNT] = {
{"build-next-error", CMD_BUILD_NEXT_ERROR},
{"goto-definition", CMD_GOTO_DEFINITION},
{"goto-line", CMD_GOTO_LINE},
+ {"split-horizontal", CMD_SPLIT_HORIZONTAL},
+ {"split-vertical", CMD_SPLIT_VERTICAL},
{"escape", CMD_ESCAPE},
};