summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-03 17:10:40 -0500
committerpommicket <pommicket@gmail.com>2023-01-03 17:10:40 -0500
commit0d92c03f3998fe4d16f3ba928d3a94583755e1ce (patch)
treea2afad849822433ea795ce6bc216321722e754f2 /ui.c
parentbaae904ed2c97ba5c701442ec5ef6900715f785d (diff)
rename ted_seterr to ted_error
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);