Commit Graph

11258 Commits

Author SHA1 Message Date
Slava Zanko
83002445e3 Merge branch '2634_spftp_servers'
* 2634_spftp_servers:
  Ticket #2634: mc cannot navigate over spftp servers
2011-10-24 20:54:53 +03:00
Sergey
2cd6dbfb53 Ticket #2634: mc cannot navigate over spftp servers
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>
2011-10-24 20:54:33 +03:00
Slava Zanko
9bbcfaedd2 Merge branch '2614_word_completion'
* 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
2011-10-24 20:38:58 +03:00
Slava Zanko
87e65893e7 Fixed searching the start of word
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:05 +03:00
Slava Zanko
eacda21c12 Code optimization: avoid lot of calls for alloc/free memory in cycle.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:05 +03:00
Slava Zanko
d12179c0de Current word under cursor doesn't included in completion list, if same word already exists in text.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:05 +03:00
ply
9b86146de2 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>
2011-10-24 20:38:04 +03:00
Slava Zanko
1f24672391 Merge branch '2254_fuse_preserve_attributes'
* 2254_fuse_preserve_attributes:
  Ticket #2254: not mark checkbox "preserve Attributes" for filesystem mount with FUSE (sshfs)
2011-10-24 20:21:13 +03:00
igor
2e895e3c29 Ticket #2254: not mark checkbox "preserve Attributes" for filesystem mount with FUSE (sshfs)
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>
2011-10-24 20:20:27 +03:00
Ilia Maslakov
41712de85c Merge branch '2372_mcedit_utf8_fix'
* 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)
2011-10-24 17:52:30 +04:00
Sergey
7f9c8f0969 fixed function 'edit_get_prev_utf ' to obtain the correct previous utf8 character.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-10-24 11:34:30 +04:00
Sergey
3e1b644f41 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>
2011-10-24 11:19:03 +04:00
Andrew Borodin
8fd8c23a49 Merge branch '2639_compile_disable_nls'
* 2639_compile_disable_nls:
  Ticket #2639: doesn't compile when using --disable-nls
2011-10-23 17:23:46 +04:00
Oswald Buddenhagen
1c0cc50a3f Ticket #2639: doesn't compile when using --disable-nls
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-23 16:21:36 +04:00
Egmont Koblinger
57de35ceb7 Ticket #2640: sand256 skin update.
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>
2011-10-23 10:45:53 +04:00
Egmont Koblinger
0ab3044665 Ticket #2641: URL inside the xoria256 skin definition file is obviously broken.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-23 10:38:35 +04:00
Slava Zanko
2013c92cbb Merge branch '2610_posix_fallocate'
* 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
2011-10-20 10:52:02 +03:00
Slava Zanko
9a7d02f4b4 Documentation updated for describe preallocate feature
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-20 10:51:08 +03:00
Slava Zanko
41af257135 Added configuration option 'preallocate_space' for toggle space preallocating behaviour.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-20 10:51:08 +03:00
Slava Zanko
323fedecd7 Added implementation for files space preallocation
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-20 10:51:08 +03:00
Slava Zanko
7fbdb87805 Ticket #2610: Use posix_fallocate() when copying files/moving to a new mount point
Added m4 function for check if posix_fallocate() is present.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-20 10:50:24 +03:00
Slava Zanko
490711fca7 Added forgotten file to distribution for tests
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-19 15:06:40 +03:00
Slava Zanko
f4bbd47435 Updated doc/NEWS file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-19 14:42:01 +03:00
Andrew Borodin
b3b5878780 Updated Russian translation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-19 14:36:11 +04:00
Andrew Borodin
ff3c4084a2 Merge branch '2632_vfs_store_file_fix'
* 2632_vfs_store_file_fix:
  little optimization to make code more intuitive.
  Ticket #2623: vfs: use data after free.
2011-10-19 14:12:32 +04:00
Ilia Maslakov
c6e21eff7d little optimization to make code more intuitive.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-10-19 14:03:49 +04:00
Andrew Borodin
664b3efcda Ticket #2623: vfs: use data after free.
(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>
2011-10-19 12:45:28 +04:00
Andrew Borodin
50574c687a Fixed Interlingua translation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-18 21:34:19 +04:00
Slava Zanko
e89e52caff Update translations from Transifex.net
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-18 14:49:40 +03:00
Slava Zanko
87472a2383 Merge branch '1551_update_gpl_version'
* 1551_update_gpl_version:
  Ticket 1551: Update GPL version from 2 to 3
2011-10-18 14:39:19 +03:00
Slava Zanko
0138645541 Ticket 1551: Update GPL version from 2 to 3
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-18 14:08:34 +03:00
Slava Zanko
e7ffcc49b5 Merge branch '2620_cleanup'
* 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.
  ...
2011-10-18 13:36:46 +03:00
Slava Zanko
4e295b261b vfs_parse_ls_lga: The checks for timestamp is commented out.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-18 13:36:06 +03:00
Slava Zanko
1759de7cd5 Include config.h to all test's files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-17 15:15:15 +03:00
Slava Zanko
d5e6dceed8 vfs_parse_ls_lga: Make tests output more verbose
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-17 14:57:28 +03:00
Andrey Tataranovich
cd658f51f6 Ticket #2627: Fixed several errors in manpages.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-17 13:30:04 +03:00
Andrew Borodin
3f674600c8 Fix build with --disable-charset option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
16664f9bd0 Added the 'c' hotkey for 'Compile and link current .c file' item of user menu.
Menu item w/o hotey is not shown in menu.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
07612ac7b7 Editor: reduce scope of some functions.
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>
2011-10-17 13:30:04 +03:00
Andrew Borodin
4b0032de28 Editor: reduce scope of some functions.
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>
2011-10-17 13:30:04 +03:00
Andrew Borodin
8664830831 Editor: reduce scope of some functions.
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>
2011-10-17 13:30:04 +03:00
Andrew Borodin
9ac22ec544 (get_paragraph): fix of pointer difference.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
6ce562381c (load_keymap_from_section): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
6fdf2e6cef (load_keymap_from_section): remove unneeded keybind conversions.
Now the '^' sign can be directly used in keymap files as well
as his name 'caret'.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
ce1249f052 Added percent sign to key names.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
23427deac6 keymap files: unification of Fxx keys: move to lower case.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
cef8eb5cc4 (mc_refresh): moved from lib/widget/wtools.[ch] to lib/widget/dialog-switch.[ch]
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:03 +03:00
Andrew Borodin
1c2b3f0da6 Man pages clean up
Removed description of non-existing command in viewer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:03 +03:00
Andrew Borodin
7330cd5672 Remove CK_Help action handler in diffviewer
...since it is fully identical with default handler.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:03 +03:00
Andrew Borodin
6273917e33 (size_trunc_len): fixed potential integer overflow if SI is used.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:03 +03:00