summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-29 13:38:46 -0500
committerpommicket <pommicket@gmail.com>2022-12-29 13:38:46 -0500
commit6e6b407550db47d3f9c85875c0f69444cf640796 (patch)
tree433d70ad1857744cad830b141c9cabd1e7ddf7d6 /ui.c
parentf1e2e8382cc09bacb5da9e3c9463fea983a9e146 (diff)
hover highlight
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index 583962e..94648f8 100644
--- a/ui.c
+++ b/ui.c
@@ -365,7 +365,7 @@ static char *file_selector_update(Ted *ted, FileSelector *fs) {
*p = PATH_SEPARATOR;
if (file_selector_cd(ted, fs, dir_name)) {
- buffer_delete_chars_at_pos(line_buffer, buffer_start_of_file(line_buffer), last_path_sep + 1); // delete up to and including the last path separator
+ buffer_delete_chars_at_pos(line_buffer, buffer_pos_start_of_file(line_buffer), last_path_sep + 1); // delete up to and including the last path separator
buffer_clear_undo_redo(line_buffer);
} else {
// delete up to first path separator in line buffer