* 2968_viewer_next_prev_mode:
Fix mode switch after CK_FileNext/CK_FilePrev.
(regex_command_for): new function to use regex_command in already created viewer/editor
(exec_extension): rename variable.
(exec_extension_view): refactoring: remove temporary file in exec_extension().
Ticket #2968: mcviewer: broken Raw/Parse and Format/UnformatRaw/Parse and Format/Unformat
...if system and file charsets are different.
Initial step: refactoring: do actual completion word substitution
outside of editcmd_dialog_completion_show().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
The bug:
If we open a file with F3 from panels, then mc uses "file extension"
style open (e.g. archive.sh) and Format/Raw switching is O.K.
If we open file in "Raw" mode, or use quick view, mc opens files
without "file extension" helpers. Format/Raw switching is broken.
In mcview_load() we check magic_mode and detect "compressed" files.
If magic mode is on and file is "compressed" we free the current vpath
and generate a new vpath with "decompress magic", but nothing else.
So, the file name disappear and we see the raw content.
After user press F8, mcview reloads the file. Now filename is the "new"
magic filename. mcview_load() open the file with the decompress "helper"
(using sfs). We see the uncompressed (parsed) content.
After user press F8, nothing happend, because original file name is lost.
The solution:
Remove the old vpath destruction.
Open the file with "uncopress magic" if magic_mode is on and file is
"compressed".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* src/filemanager/lib/mountlist.c: port to HP NonStop.
(hasmntopt) [!HAVE_HASMNTOPT]: New function.
(MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* move from src/editor/editcmd.c into src/editor/edit.c and make static;
* rename to edit_insert_column_from_file;
* make some refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Don't consider "devtmpfs" as dummy.
* src/filemanager/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
as there is storage associcated with it.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Don't show total size, number and time values of file operations
if directory scanning was skipped before.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
for example, the config file may contain strings:
[External editor or viewer parameters]
vim = %filename +%lineno
mcedit = %filename:%lineno
And these external editors will open a file at the previously saved position.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Steps to Reproduce:
1. Run mc in native console (not in X terminal emulator).
2. Press Ctrl+O to switch to subshell.
3. Try select anything with mouse.
Result: mouse does't select anything.
This bug was introduced in 68468a25ac
commit.
Solution: make mouse initialization after initializaton of subshell.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>