summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-08 14:50:30 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-08 14:50:30 -0500
commitf05a22635e54564e9dfed28f83ea583a19046d03 (patch)
tree519861992a7c313b7d9ebf5b273b2bd436f6fd96 /command.h
parentaa862462008e647cc4e87fd4618fe5dc5af1076d (diff)
search in both directions
Diffstat (limited to 'command.h')
-rw-r--r--command.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/command.h b/command.h
index 50741ed..74741c4 100644
--- a/command.h
+++ b/command.h
@@ -27,6 +27,7 @@ ENUM_U16 {
// insertion
CMD_TAB, // insert '\t'
CMD_NEWLINE, // insert '\n' + autoindent -- also used to submit line buffers
+ CMD_NEWLINE_BACK,
// scrolling
CMD_PAGE_UP, // move cursor up one page up (where one page is however tall the buffer is)
@@ -97,6 +98,7 @@ static CommandName const command_names[CMD_COUNT] = {
{"page-down", CMD_PAGE_DOWN},
{"tab", CMD_TAB},
{"newline", CMD_NEWLINE},
+ {"newline-back", CMD_NEWLINE_BACK},
{"backspace", CMD_BACKSPACE},
{"delete", CMD_DELETE},
{"backspace-word", CMD_BACKSPACE_WORD},