diff options
author | pommicket <pommicket@gmail.com> | 2022-07-29 14:29:36 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-07-29 14:33:32 -0400 |
commit | ab65fe136f7a8739b78aaa4801a9fb761a301417 (patch) | |
tree | d9193726574c6ed7884562ad2c376bef48905b58 /command.c | |
parent | 00fce97eb96fc2f1c1bfd8daf4f795ff36cf98c0 (diff) |
per-language settings
also fixed ctrl+/ in go
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -31,7 +31,7 @@ char const *arg_get_string(Ted *ted, i64 argument) { void command_execute(Ted *ted, Command c, i64 argument) { TextBuffer *buffer = ted->active_buffer; Node *node = ted->active_node; - Settings *settings = &ted->settings; + Settings *settings = buffer ? buffer_settings(buffer) : ted->settings; switch (c) { |