diff --git a/doc/man/mc.1.in b/doc/man/mc.1.in index da3c9720c..aace39942 100644 --- a/doc/man/mc.1.in +++ b/doc/man/mc.1.in @@ -2395,7 +2395,8 @@ The error file name. The current menu name. .TP .IR %f " and " %p -The current file name. +In file manager user menu: the current file name in selected panel. +In mcedit user menu: the name of opened file. .TP .I %x The extension of current file name. diff --git a/doc/man/ru/mc.1.in b/doc/man/ru/mc.1.in index d355d08fe..4a1ab012d 100644 --- a/doc/man/ru/mc.1.in +++ b/doc/man/ru/mc.1.in @@ -2582,7 +2582,8 @@ FTP\-сервера, в памяти (в кеше). Время, в течени Имя текущего файла меню. .TP .I "%f" и "%p" -Текущее имя файла. +В файле меню файлового менеджера: текущее имя файла в активной панели. +В файле меню встроенного редактора: имя открытого файла. .TP .I "%x" Расширение текущего файла. diff --git a/src/usermenu.c b/src/usermenu.c index f26955646..2339f3e98 100644 --- a/src/usermenu.c +++ b/src/usermenu.c @@ -603,9 +603,9 @@ menu_file_own (char *path) /* Formats defined: %% The % character - %f The current file (if non-local vfs, file will be copied locally and - %f will be full path to it). - %p The current file + %f The current file in the active panel (if non-local vfs, file will be copied locally + and %f will be full path to it) or the opened file in the internal editor. + %p Likewise. %d The current working directory %s "Selected files"; the tagged files if any, otherwise the current file %t Tagged files