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.
...
The edit_insert_column_of_text() function is used only in
src/editor/editcmd.c file. Now it is static.
Removed unneeded forward declarations.
Moved static functions to static area in src/editor/editcmd.c
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Following fuctions are used in in src/editor/edit.c file only:
edit_print_string
edit_move_block_to_right
edit_move_block_to_left
They was moved from src/editor/editcmd.c into src/editor/edit.c
and made static.
insert_spaces_tab() is used in src/editor/edit.c. Not it is static. Also
some optimization was performed.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Following fuctions are used in in src/editor/edit.c file only:
edit_get_byte_ptr
edit_get_buf_ptr
edit_get_prev_utf
Now they are static.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>