summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-11-02 13:29:09 -0400
committerpommicket <pommicket@gmail.com>2022-11-02 13:29:09 -0400
commitb070e5ce01c829bd101b1e0eda49f1e25d9d125c (patch)
treef674fcbaad6b565e89d1ba973198024d958cac22 /command.c
parent26d34216da04a2b91e65a0eeee9200ad808d48ce (diff)
new settings system bugfixes, use ted_active_settings more
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index eda57f0..58a6004 100644
--- a/command.c
+++ b/command.c
@@ -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 = buffer ? buffer_settings(buffer) : ted->settings;
+ Settings *settings = ted_active_settings(ted);
switch (c) {