diff options
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) { |