summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index ff41cc9..cdc0bb2 100644
--- a/main.c
+++ b/main.c
@@ -1,5 +1,6 @@
/*
TODO:
+- fix find
- public Node API
- public Selector/FileSelector API
@@ -798,7 +799,7 @@ int main(int argc, char **argv) {
TextBuffer *buffer = ted->active_buffer;
if (buffer) {
if (buffer_is_named_file(buffer)) {
- const char *buffer_path = buffer->path;
+ const char *buffer_path = buffer_get_path(buffer);
assert(*buffer_path);
char *last_sep = strrchr(buffer_path, PATH_SEPARATOR);
if (last_sep) {