summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-23 14:34:47 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-23 14:34:47 -0500
commit0c9d72c17ce23ebbf96ab18329fb5b4418f1e9a7 (patch)
tree0ad9b1b0786dea64882b977955a3f21c7c5c5dda /ui.c
parente023993681e8be6bfb138175838b3c7096b332af (diff)
various tag bugfixes
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index d2f0d23..45ea056 100644
--- a/ui.c
+++ b/ui.c
@@ -311,9 +311,10 @@ static Status file_selector_cd_(Ted const *ted, FileSelector *fs, char const *pa
// go to the directory `path`. make sure `path` only contains path separators like PATH_SEPARATOR, not any
// other members of ALL_PATH_SEPARATORS
// returns false if this path doesn't exist or isn't a directory
-static bool file_selector_cd(Ted const *ted, FileSelector *fs, char const *path) {
+static bool file_selector_cd(Ted *ted, FileSelector *fs, char const *path) {
fs->sel.cursor = 0;
fs->sel.scroll = 0;
+ buffer_clear(&ted->line_buffer);
return file_selector_cd_(ted, fs, path, 0);
}