diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-14 13:48:00 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-14 13:48:00 -0500 |
commit | 5ff81b44c8fd118580d011fb61deb662f8b93c93 (patch) | |
tree | bb0118576e3ee25f5cc334f5521fcca444795788 /command.c | |
parent | 6a4872368e3b240ea15eda3e2e645f588efcf6a9 (diff) |
toggle view only mode
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -245,6 +245,10 @@ void command_execute(Ted *ted, Command c, i64 argument) { } } break; + case CMD_VIEW_ONLY: + if (buffer) buffer->view_only = !buffer->view_only; + break; + case CMD_TAB_CLOSE: { if (ted->menu) { menu_close(ted); |