fixed problem with zero-length files from VFS in mcedit.
steps to reproduce the problem:
1. touch test.txt
2. tar cf test.tar test.txt
3. place cursor on test.tar and press Enter to enter to the archive.
4. place cursor on test.txt and press F4 to open file in editor.
Result: file not opened.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
While deleting an empty group in hotlist, the extra confirmation
"Group not empty. Remove it?" should not raise.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Until 4.7 '/' was forward and '?' backward search.
In current releases both keys are bound to ViewSearch
so one must manually choose Backwards option in the dialog.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
(panel_view_mode_t): move from panel.h to layout.h.
(panel_update_cols): move from layout.[ch] to panel.[ch]
Fixed related includes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
The bug only occurs with subshell enabled.
When resizing the window while in the viewer, the subshell resizes
itself and hence prints its prompt again. This is captured and processed
by mc.
src/filemanager/layout.c:setup_panels() is executed and recalculates
properties of the panel, but for some reason this time mc_prompt does
contain all the invisible characters, they are not stripped off, hence
size calculation goes wrong.
Thanks Egmont Koblinger for the detailed description of the problem and
the idea of fix.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Fixed troubles in mcviewer with drawing utf8 chars.
It happens in the middle of an utf8 char (on every 4096 bytes),
leading to a valid char treated as unprintable.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
After #2361, smb vfs module doesn't work at all.
The error message "Cannot chdir to ..." raises after hostname enter.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
added ".." at the top of file list (after external panelization)
added ".." at the top of file list (after 'find' panelization)
disable ctrl-r (refresh) for panelized content
added menu entry Left\Panelize, to restore panelized panel
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Minor changes in goto_parent_dir()
many code optimization
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
little fixup
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Some FTP servers like ftp.symantec.com and download.nvidia.com
do not support parameters in LIST command. They don't fail on
LIST -la ... just ignore them. So mc shows only root directory.
Always.
Steps to reproduce:
cd /#ftp:ftp.symantec.com/public
Expected result:
Content of /public/ directory shown.
Actual result:
Content of root / directory shown instead.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Currently the completion considers the word the cursor is on as a possible
completion, but this is quite annoying if the cursor is inside the word.
Such completion effectively inserts the rest of the word one more time, so
CamelCase becomes CamelCaseCase. If this is the only match, it completes
automatically, which is even worse. The current word shouldn't be used
for completion.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
If we copy the files to the partition mounted with sshfs,
the default checkbox "preserve Attributes" is unchecked.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Sometimes when text contain multibyte UTF-8 chars, editor shows two dots instead of some letter.
When moving text cursor after that letter it will be displayed properly.
When moving cursor back (before letter) it will be displayed again as two dots.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
added UTF8_CHAR_LEN
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>