summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-04-13 14:37:24 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2021-04-13 14:37:24 -0400
commit77cfc38b57626e2c5a0b3549407c13acecb62d20 (patch)
tree2dd9bf9761ee6b2478ab39503995b35b72683f4e /ted.c
parent69789c042460e012ec3054cc2e6ceeff25e394b9 (diff)
improve tag generation (don't just look at files in the cwd)
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ted.c b/ted.c
index 91471b4..cb227fa 100644
--- a/ted.c
+++ b/ted.c
@@ -48,7 +48,7 @@ static void *ted_realloc(Ted *ted, void *p, size_t new_size) {
return ret;
}
-static void ted_full_path(Ted *ted, char const *relpath, char *abspath, size_t abspath_size) {
+static void ted_path_full(Ted *ted, char const *relpath, char *abspath, size_t abspath_size) {
path_full(ted->cwd, relpath, abspath, abspath_size);
}
@@ -235,7 +235,7 @@ static Status ted_open_buffer(Ted *ted, u16 *buffer_idx, u16 *tab) {
// Returns true on success
static bool ted_open_file(Ted *ted, char const *filename) {
char path[TED_PATH_MAX];
- ted_full_path(ted, filename, path, sizeof path);
+ ted_path_full(ted, filename, path, sizeof path);
// first, check if file is already open
bool *buffers_used = ted->buffers_used;
@@ -273,7 +273,7 @@ static bool ted_new_file(Ted *ted, char const *filename) {
u16 buffer_idx, tab_idx;
char path[TED_PATH_MAX];
if (filename)
- ted_full_path(ted, filename, path, sizeof path);
+ ted_path_full(ted, filename, path, sizeof path);
else
strbuf_cpy(path, TED_UNTITLED);
if (ted_open_buffer(ted, &buffer_idx, &tab_idx)) {