Commit Graph

11746 Commits

Author SHA1 Message Date
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
Andrew Borodin
22a9e2bc0e (copy_dir_dir): refactoring: get rid of goto dont_mkdir.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-29 14:47:42 +04:00
Slack
1a7302e5c5 Ticket #2924: attributes of existing directories are never preserved.
If superuser copies a directory tree (e.g. from a safe backup location
(with sane permission, owner, group, timestamp) over an existing tree,
any attributes are not preserved. All destination dirs retain all their
existing attributes instead of change attributes from source.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-29 14:47:42 +04:00
Andrew Borodin
52108b53d4 Ticket #2934: highlight OGV files as media.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-23 14:25:36 +04:00
Andrew Borodin
b7503b878a Merge branch '2918_cygwin_test_build' into 4.8.1-stable
* 2918_cygwin_test_build:
  Ticket #2918: cygwin test failure.
2012-11-14 13:36:04 +04:00
Andrew Borodin
2209738d1a Ticket #2918: cygwin test failure.
In
tests/lib/mcconfig/Makefile.am
tests/lib/vfs/Makefile.am
tests/src/filemanager/Makefile.am

AM_LDFLAGS = -Wl,-z,muldefs

is used, but on cygwin the linker does not accept the "-z" option and

AM_LDFLAGS = -Wl,--allow-multiple-definition

is required instead.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-14 13:35:47 +04:00
Marco Ciampa
3d9edaa861 Updated italian translation. 2012-11-13 02:07:22 +01:00
Andrew Borodin
8643099745 Merge branch '2917_cppflags_cleanup' into 4.8.1-stable
* 2917_cppflags_cleanup:
  Remove unused AM_CPPFLAGS.
  Ticket #2917: Makefile.ams cleanup.
2012-10-20 15:22:18 +04:00
Andrew Borodin
0da7057cba Remove unused AM_CPPFLAGS.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-13 11:35:03 +04:00
Andrew Borodin
ec0defe60d Ticket #2917: Makefile.ams cleanup.
Set defines via CPPFLAGS variable not via CFLAGS one.
Use AM_CPPFLAGS and AM_CFLAGS variables instead of per-target ones.

Cherry-picked b37af47023.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-13 11:27:52 +04:00
Andrew Borodin
bf10a32c28 src/filemanager/mountlist.c: fix indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-12 14:47:32 +04:00
Andrew Borodin
a4b1424767 Merge branch '2906_copy_crash_on_solaris' into 4.8.1-stable
* 2906_copy_crash_on_solaris:
  (get_fs_usage): avoid compile warning about mixed declarations and code.
  Sync with gnulib ffe10f3d20c2eb77efd56b68f2c22b2a810c289d.
  Sync with gnulib 2ab2617ee340ff35a9a4c713004fb302868d41b0
  Sync with gnulib 0a6dafee2bb8f69a931345a1f67d835ee5062967
  Sync with gnulib b1fac377605c0eef8844fc8d3818d360f37d6fa4:
  Ticket #2906: crash on Solaris while trying to copy a file.
2012-10-12 14:09:28 +04:00
Andrew Borodin
cdd9451621 (get_fs_usage): avoid compile warning about mixed declarations and code.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-12 14:07:39 +04:00
Andrew Borodin
dd1eb69a6d Sync with gnulib ffe10f3d20c2eb77efd56b68f2c22b2a810c289d.
fsusage: port back to Solaris

* src/filemanager/mountlist.c (get_fs_usage): Fix busted logic causing
compile-time error (fsd not declared) on Solaris 10.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-12 14:06:03 +04:00
Andrew Borodin
42b5438045 Sync with gnulib 2ab2617ee340ff35a9a4c713004fb302868d41b0
* src/filemanager/mountlist.c [STAT_STATVFS && (__linux__ && (__GLIBC__||__UCLIBC__))]:
Undefine STAT_STATFS2_FRSIZE to exclude code not used in this case.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-12 14:06:03 +04:00
Andrew Borodin
38b35288f9 Sync with gnulib 0a6dafee2bb8f69a931345a1f67d835ee5062967
Avoid needless check on GNU/Linux.

* m4.include/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
on GNU/Linux systems, since it can't possibly work.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-10-12 14:06:03 +04:00