diff options
author | Andrew Borodin <aborodin@vmail.ru> | 2025-07-18 19:59:59 +0300 |
---|---|---|
committer | Andrew Borodin <aborodin@vmail.ru> | 2025-07-18 19:59:59 +0300 |
commit | 1c5674de99157ed99260c95380cd001e87c06e95 (patch) | |
tree | b9b0315ebf85d21f094aa709b571095338d55b4a | |
parent | 27943f953928bcc0c5c7990375be3629628d3618 (diff) | |
parent | 75cea37d7c208acb70c208184a3e36f7ba7d6aa5 (diff) |
Merge branch '4736_lynx_motion_right_key'HEADorigin/masterorigin/HEADmasterfor-upstream
* 4736_lynx_motion_right_key:
Ticket #4736: fix Lynx-like motion.
-rw-r--r-- | src/filemanager/panel.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/filemanager/panel.c b/src/filemanager/panel.c index f33dc98d3..c1d791645 100644 --- a/src/filemanager/panel.c +++ b/src/filemanager/panel.c @@ -1940,13 +1940,17 @@ maybe_cd (WPanel *panel, gboolean move_up_dir) fe = panel_current_entry (panel); - if (fe != NULL && (S_ISDIR (fe->st.st_mode) || link_isdir (fe))) + if (fe != NULL) { - vfs_path_t *vpath; + if (S_ISDIR (fe->st.st_mode) || link_isdir (fe)) + { + vfs_path_t *vpath; + + vpath = vfs_path_from_str (fe->fname->str); + panel_cd (panel, vpath, cd_exact); + vfs_path_free (vpath, TRUE); + } - vpath = vfs_path_from_str (fe->fname->str); - panel_cd (panel, vpath, cd_exact); - vfs_path_free (vpath, TRUE); return MSG_HANDLED; } } |