From be38f707040a223d29c7700c1a4957d6c9658d2e Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Wed, 25 Feb 2015 14:27:54 +0300 Subject: [PATCH] Ticket #3285: mcedit: show full path to file in the status line. Signed-off-by: Andrew Borodin --- src/editor/editdraw.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/editor/editdraw.c b/src/editor/editdraw.c index 710b51010..0ef7d833e 100644 --- a/src/editor/editdraw.c +++ b/src/editor/editdraw.c @@ -210,7 +210,7 @@ edit_status_fullscreen (WEdit * edit, int color) status_len = (int) str_term_width1 (status); if (edit->filename_vpath != NULL) - fname = x_basename (vfs_path_get_last_path_str (edit->filename_vpath)); + fname = vfs_path_get_last_path_str (edit->filename_vpath); fname_len = str_term_width1 (fname); if (fname_len < preferred_fname_len) @@ -263,9 +263,7 @@ edit_status_window (WEdit * edit) const char *fname = N_("NoName"); if (edit->filename_vpath != NULL) - { - fname = x_basename (vfs_path_as_str (edit->filename_vpath)); - } + fname = vfs_path_get_last_path_str (edit->filename_vpath); #ifdef ENABLE_NLS else fname = _(fname);