summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index bca2614..b47694d 100644
--- a/ui.c
+++ b/ui.c
@@ -90,8 +90,8 @@ char *selector_update(Ted *ted, Selector *s) {
}
}
- if (line_buffer->line_buffer_submitted) {
- line_buffer->line_buffer_submitted = false;
+ if (line_buffer_is_submitted(line_buffer)) {
+ line_buffer_clear_submitted(line_buffer);
if (!ret) {
if (s->enable_cursor) {
// select this option