diff options
author | pommicket <pommicket@gmail.com> | 2023-03-23 14:18:26 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-03-23 14:18:26 -0400 |
commit | f338c3937686c4297daa1d24aacce719aa549ec7 (patch) | |
tree | 9b91859f3462b4f6ade85dfb55d19f49bdaa775d /command.c | |
parent | eb088ebd059ba00735723fb394d3bfe1b3530026 (diff) |
macros are working!
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -37,6 +37,7 @@ static CommandName command_names[] = { {"select-all", CMD_SELECT_ALL}, {"select-up-blank-line", CMD_SELECT_UP_BLANK_LINE}, {"select-down-blank-line", CMD_SELECT_DOWN_BLANK_LINE}, + {"clear-selection", CMD_CLEAR_SELECTION}, {"page-up", CMD_PAGE_UP}, {"page-down", CMD_PAGE_DOWN}, {"previous-position", CMD_PREVIOUS_POSITION}, @@ -210,6 +211,9 @@ void command_execute_ex(Ted *ted, Command c, CommandArgument full_argument, Comm if (buffer) buffer_select_left(buffer, argument); autocomplete_close(ted); break; + case CMD_CLEAR_SELECTION: + if (buffer) buffer_deselect(buffer); + break; case CMD_SELECT_RIGHT: if (buffer) buffer_select_right(buffer, argument); autocomplete_close(ted); |