* 2338_free_space_calculation:
src/filemanager/mountlist.c and related m4 macros: sync with gnulib.
Ticket #2338: use uintmax_t for file system infomation
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>
When platform does not define HAVE_POSIX_FALLOCATE we get this error:
CC vfs.lo
../../../../mc/lib/vfs/vfs.c: In function 'vfs_preallocate':
../../../../mc/lib/vfs/vfs.c:613:12: error: 'dest_desc' undeclared (first use in this function)
../../../../mc/lib/vfs/vfs.c:613:12: note: each undeclared identifier is reported only once for each function it appears in
../../../../mc/lib/vfs/vfs.c:610:22: warning: unused parameter 'dest_vfs_fd' [-Wunused-parameter]
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
For FTP servers, that do not send ".." in directory listing, mc adds one space to the name of every file and directory. Attached patch should fix this problem.
Steps to reproduce:
cd /#ftp:ftp.symantec.com
Expected result:
Correct list of files/directories
Actual result:
File/directory names with leading spaces
Signed-off-by: Slava Zanko <slavazanko@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>
* 2614_word_completion:
Fixed searching the start of word
Code optimization: avoid lot of calls for alloc/free memory in cycle.
Current word under cursor doesn't included in completion list, if same word already exists in text.
Ticket #2614: Editor word completion should ignore the current word
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>
* 2372_mcedit_utf8_fix:
fixed function 'edit_get_prev_utf ' to obtain the correct previous utf8 character.
Ticket #2372 (Editor sometimes shows multibyte UTF-8 chars as two dots)
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>
When reorganizing skins, two values in the sand256 skin got lost: the
header is boring black instead of interesting red, and the header in
viewer/editor is not highlighted.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2610_posix_fallocate:
Documentation updated for describe preallocate feature
Added configuration option 'preallocate_space' for toggle space preallocating behaviour.
Added implementation for files space preallocation
Ticket #2610: Use posix_fallocate() when copying files/moving to a new mount point
(vfs_s_close): vfs-specific data of file handler
vfs_file_handler_t::data is freed in vfs_s_subclass::fh_close method and
then can be used in vfs_s_subclass::file_store_one. Bug is related to
ftp and fish VFSes.
Added new vfs_s_subclass::fh_free_data method to free vfs-specific data
of file handler vfs_file_handler_t::data. Use it in ftp and vfs VFSes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2620_cleanup: (25 commits)
vfs_parse_ls_lga: The checks for timestamp is commented out.
Include config.h to all test's files
vfs_parse_ls_lga: Make tests output more verbose
Ticket #2627: Fixed several errors in manpages.
Fix build with --disable-charset option.
Added the 'c' hotkey for 'Compile and link current .c file' item of user menu.
Editor: reduce scope of some functions.
Editor: reduce scope of some functions.
Editor: reduce scope of some functions.
(get_paragraph): fix of pointer difference.
(load_keymap_from_section): minor optimization.
(load_keymap_from_section): remove unneeded keybind conversions.
Added percent sign to key names.
keymap files: unification of Fxx keys: move to lower case.
(mc_refresh): moved from lib/widget/wtools.[ch] to lib/widget/dialog-switch.[ch]
Man pages clean up
Remove CK_Help action handler in diffviewer
(size_trunc_len): fixed potential integer overflow if SI is used.
VFS small optimization
Remove extra screen update after show help.
...