summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui.c b/ui.c
index d55dfd3..ad1fe56 100644
--- a/ui.c
+++ b/ui.c
@@ -418,9 +418,9 @@ char *file_selector_update(Ted *ted, FileSelector *fs) {
if (files) break;
else if (i == 0) {
if (fs_path_type(cwd) == FS_NON_EXISTENT)
- ted_seterr(ted, "%s is not a directory.", cwd);
+ ted_error(ted, "%s is not a directory.", cwd);
else
- ted_seterr(ted, "Can't list directory %s.", cwd);
+ ted_error(ted, "Can't list directory %s.", cwd);
}
file_selector_cd(ted, fs, "..");
}
@@ -478,7 +478,7 @@ char *file_selector_update(Ted *ted, FileSelector *fs) {
// set cwd to this (if no buffers are open, the "open" menu should use the last file selector's cwd)
strbuf_cpy(ted->cwd, cwd);
} else {
- ted_seterr(ted, "Couldn't list directory '%s'.", cwd);
+ ted_error(ted, "Couldn't list directory '%s'.", cwd);
}
free(search_term);