summaryrefslogtreecommitdiff
path: root/tags.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-28 16:35:38 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-28 16:35:38 -0500
commit52fd5e0c95da236fd14682ed8a7cfa34afbab2c0 (patch)
tree4f8ca7df068983ad6aa2de38a7862a9bb607f258 /tags.c
parentfb2a0b9998a599f9e8a9a1e911fd43345778f6ef (diff)
set active_node to NULL when line buffer is active
Diffstat (limited to 'tags.c')
-rw-r--r--tags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tags.c b/tags.c
index 4412533..119a510 100644
--- a/tags.c
+++ b/tags.c
@@ -194,7 +194,7 @@ static void tag_selector_open(Ted *ted) {
arr_add(ted->tag_selector_entries, strn_dup(line, len));
}
}
- ted->active_buffer = &ted->line_buffer;
+ ted_switch_to_buffer(ted, &ted->line_buffer);
buffer_select_all(ted->active_buffer);
ted->tag_selector.cursor = 0;