diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-23 14:34:47 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-23 14:34:47 -0500 |
commit | 0c9d72c17ce23ebbf96ab18329fb5b4418f1e9a7 (patch) | |
tree | 0ad9b1b0786dea64882b977955a3f21c7c5c5dda /ui.c | |
parent | e023993681e8be6bfb138175838b3c7096b332af (diff) |
various tag bugfixes
Diffstat (limited to 'ui.c')
-rw-r--r-- | ui.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |