* On opening file, detect line-endings used by sampling some initial content.
* If it happen to be CR or CRLF, skip fast load path, and in edit_insert_file()
convert such line endings to '\n'.
* Save detected line ending type for editor.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Some ini files (keymaps, skins) are loaded in read-only mode. For those
files, we don't need load and keep comments.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Modify algorithm of keymap files load:
1) Unconditionally load /usr/share/mc/mc.keymap
2) Unconditionally load /etc/mc/mc.keymap
Then load one of following user-defined keymaps, stop on success:
3) set via --keymap command line option
4) set via MC_KEYMAP environment variable
5) set via keymap key in config file
6) ~/.config/mc/mc.keymap
Fix of double load of keymap file if name is same as name of
system-wide keymap file.
Update man pages.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(expand_format): don't try expand format and return empty line
for modes that are not used formatted variables.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Syntax file properties.syntax used very dark color for keys (cyan is
almost invisible on default MC background), and bright color for
delimiters (yellow), which made highlighted file difficult to read.
Change keys color to yellow.
Change delimeters color to bright cyan.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Test case:
* cp /path/to/any-file.rpm '/tmp/a n y - f i l e.rpm'
* run /usr/bin/mc, go to /tmp
* Press Enter on 'a n y - f i l e.rpm' file
Expected result: mc should be entered to RPM package as in directory
Actual result: gor errors:
Inconsistent extfs archive
error: open of /tmp/a\ failed: No such file or directory
...
error: open of e.rpm failed: No such file or directory
-r--r--r-- 1 root root 0 Jun 29 15:12 ERROR
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* 2845_cleanup:
Clarify cvs dependency.
(mcview_moveto_eol): comparison of unsigned expression < 0 fixup.
Makefile.ams cleanup.
Code indentation.
Try fix of compile warnings about assigned but unused variables
Code cleanup: removed unused variables amd removed unnedeed code.
(exec_extension): ret rid of double filename conversion.
Ticket #2839: Fix keybindings for Quit command of mcedit.
Tweak of select codepage code in case of --disable-charset
Fix of 'External panelize' dialog: update of 'Command' field content after mouse click.
Fix of f13 key handling.
Fix typos.
Ticket #2538: mcviewer: unused result of str_term_width1().
src/filemanager/mountlist.c: apply mc code indentation policy.
Ticket #2845: code cleanup before 4.8.4 release.
Set defines via CPPFLAGS variable not via CFLAGS one.
Use AM_CPPFLAGS and AM_CFLAGS variables instead of per-target ones.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
In Search dialog in mcedit M-n hotkey was used for normal search mode.
Therefore, M-n as HistoryPrev in the input line was in accessible.
Change hotkey for normal seach mode to M-r. Use this hotkey for normal diff
mode in mcdiffviewer to unify i18n resources.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 1535_vfs_sftp_fixes:
Add SFTP to the list of supported VFSes.
SFTP connections are shown now in 'Active VFS connections' list.
Fixed reget support in SFTP.
Ticket #1535: configure: don't fail if 'sftp' support was not requested explicitly