Andrew Borodin
89f59bb12b
Optimization of SIGWINCH handling.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:32 +04:00
Andrew Borodin
71bae55f12
Parenthesis around some -1.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:32 +04:00
Andrew Borodin
51cb5c1644
src/filemanager/mountlist.c: use GLib functions to allocate/free memory.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:32 +04:00
Andrew Borodin
ae489361bd
Sync with gnulib 613bcb6205cf2b64d835c19074c5a7e7c6cb99eb
...
...and ab7a2b67b48deb4c253b3b6bd983690d71515265.
* src/filemanager/mountlist: do not classify a bind-mounted dir entry
as "dummy".
(ME_DUMMY_0): Rename from ME_DUMMY, but omit the "none"-testing clause.
(ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the exception
for bind-mounted directories.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:32 +04:00
Andrew Borodin
03f09e8202
FileOpContext::preserve: make gboolean.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:32 +04:00
Andrew Borodin
245d1f08b4
FileOpContext::dive_into_subdirs: make gboolean.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:32 +04:00
Andrew Borodin
43226b9ae1
Don't create copy/move progress dialog for background operations.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:32 +04:00
Pavel Vasilyev
86939f4411
src/vfs/tar/tar.c: types accuracy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:32 +04:00
Pavel Vasilyev
b266626430
src/vfs/cpio/cpio.c: types accuracy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:32 +04:00
Pavel Vasilyev
9678bdc3ef
vfs_s_subclass::linear_read: return ssize_t instead of int.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:32 +04:00
Pavel Vasilyev
48c3be0a72
lib/vfs/direntry.c: types accuracy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:32 +04:00
Andrew Borodin
fd24e32c7c
lib/vfs/vfs.h: indentation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Pavel Vasilyev
48e6576e80
(mcview_search_update_cmd_callback): add type cast for correct condition check.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Andrew Borodin
16e8ad748c
(mcview_find): type accuracy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Andrew Borodin
1567395ce7
lib/tty/color.c: use unsigned type for conversion between integer and pointer.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Andrew Borodin
080ab4fb11
(str_iscombiningmark): return gboolean instead of int
...
...and related changes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Andrew Borodin
7e63848f99
(enter): use GString instead of hand-made memory (re)allocation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Andrew Borodin
a341971441
Clarify of sig_atomic_t usage (got from Mutt).
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Andrew Borodin
1463d550b0
Define winch_flag as volatile sig_atomic_t.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Andrew Borodin
6cbe12d968
Don't exit after migration of configuration files.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Andrew Borodin
a943752158
Init file highlighting only in full mode.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Andrew Borodin
254dad6c63
(exit_subshell): return gboolean instead of int.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Andrew Borodin
855887c633
lib/strutil/strverscmp.c: add missing include of config.h.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Andrew Borodin
f2076590a3
(fish_linear_abort): type accuracy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Ilia Maslakov
b8274ccc9a
(fish_file_store): remove unnecessary 'was_error' variable.
...
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-12-21 12:50:31 +04:00
Andrew Borodin
4242ea17c3
(fish_file_store): type accuracy to avoid counter overflow while copiyng huge files.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Andrew Borodin
11c5bf0da7
(ftpfs_file_store): type accuracy and simplify conditions.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:31 +04:00
Yury V. Zaytsev
8f71bca768
src/filemanager/dir.c: refactored growing of dir_list into a separate function.
...
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-12-21 12:50:31 +04:00
Andrew Borodin
0e7d534529
Fix of sys/ioctl.h includes: use HAVE_SYS_IOCTL_H guard.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:30 +04:00
Andrew Borodin
76f345880a
src/filemanager/Makefile.am: cleanup source file list.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:30 +04:00
Andrew Borodin
822e81d574
Clarify of i18n initialization.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:30 +04:00
Andrew Borodin
89a9c32c56
(edit_get_syntax_color): return color directly.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:30 +04:00
Andrew Borodin
2c7aadf2bc
(edit_block_move_cmd): minor cleanup.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:30 +04:00
Ilia Maslakov
8b4b4ff2b8
mcedit: fix block movement.
...
steps to reproduce:
1) create text
111111111111111111
222222222222222222
333333333333333333
444444444444444444
555555555555555555
2) select text from line 2 to line 4
3) move cursor to line 3
4) press F6
The block was moved but should't.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-12-21 12:50:30 +04:00
Andrew Borodin
f0fbb4bf93
Use AC_MSG_NOTICE to print configure results.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:30 +04:00
Andrew Borodin
1ec1fbe35b
(mc_mkstemps): use g_mkstemp() to generate name of temporary file.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:30 +04:00
Andrew Borodin
5477385d40
Check perl, python and ruby programs and substitute them in various files.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:30 +04:00
Adrian Bunk
978baf01be
Ticket #2871 : remove the empty contrib/dist/debian/
...
It was empty and the up-to-date Debian packaging is anyway
maintained separately in Debian.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:30 +04:00
Andrew Borodin
949234a053
Ticket #2889 : code cleanup in 4.8.1-stable branch.
...
Fix i18n of file operation dialog titles.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-21 12:50:30 +04:00
Slava Zanko
3dc343f2df
Added HAVE_SUBSHELL_SUPPORT condition to Makefile files
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-12-20 16:44:20 +03:00
Slava Zanko
0abc3c494f
Avoid warnings in tests: added headers
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-12-20 15:33:18 +03:00
Slava Zanko
1202e21314
Avoid warnings in tests
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-12-20 13:57:33 +03:00
Slava Zanko
84fecff024
Ticket #2883 : non-portable test
...
Test has been rewritten for support actuality.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-12-20 13:38:01 +03:00
Andrew Borodin
c8af535907
Merge branch '2926_screen_lib_flags' into 4.8.1-stable
...
* 2926_screen_lib_flags:
Clarify usage of AM_CPPFLAGS.
PCRE_CFLAGS are CPPFLAGS, actually.
m4.include/mc-with-screen-slang.m4: clarify usage of CPPFLAGS, CFLAGS and LDFLAGS
Ticket #2926 : fail to check ncurses library
2012-12-18 16:34:32 +04:00
Andrew Borodin
a8030670b7
Clarify usage of AM_CPPFLAGS.
...
Use AM_CPPFLAGS not AM_CFLAGS for includes. GLIB_CFLAGS are CPPFLAGS, actually.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-18 16:33:25 +04:00
Andrew Borodin
d557ade7f6
PCRE_CFLAGS are CPPFLAGS, actually.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-18 16:32:52 +04:00
Andrew Borodin
36c73a00e7
m4.include/mc-with-screen-slang.m4: clarify usage of CPPFLAGS, CFLAGS and LDFLAGS
...
...in s-lang library checking.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-18 16:32:08 +04:00
Andrew Borodin
a67d752ef2
Ticket #2926 : fail to check ncurses library
...
...if --with-ncurses-inc and --with-ncurses-libs options are used.
m4.include/mc-with-screen-ncurses.m4: clarify usage of LDFLAGS in
ncurses library checking: add $ac_curses_lib_path.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-18 16:32:08 +04:00
Andrew Borodin
65569af255
Merge branch '2924_preserve_dir_attributes' into 4.8.1-stable
...
* 2924_preserve_dir_attributes:
(copy_dir_dir): get rid of extra string duplication.
(copy_dir_dir): refactoring: get rid of goto dont_mkdir.
Ticket #2924 : attributes of existing directories are never preserved.
2012-11-29 14:48:04 +04:00
Andrew Borodin
6e6b2c9912
(copy_dir_dir): get rid of extra string duplication.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-29 14:47:42 +04:00