Commit Graph

14326 Commits

Author SHA1 Message Date
Andrew V. Samoilov
05ea41cdb5 (load_setup_get_keymap_profile_config): fix possible use-after-free [PVS-Studio]
Signed-off-by: Andrew V. Samoilov <a.samoilov@gmail.com>
2019-02-03 13:09:59 +03:00
Andrew Borodin
912a182aad (init_layout): rename to layout_dlg_create.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:09:59 +03:00
Andrew Borodin
846e2b9888 (get_display_type): rename to get_panel_type.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:09:59 +03:00
Andrew Borodin
615f29d7d5 (set_display_type): rename to create_panel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:09:59 +03:00
Andreas Mohr
40b2681294 src/man2hlp.in: support partly .RE macro.
To get rid of following warning

    man2hlp: Warning: unsupported command .RE in file "../../doc/man/mc.1" on line 4317

support at least 'break' feature for .RE macro

See https://www.gnu.org/software/groff/manual/html_node/Man-usage.html
    The macros RS and RE also cause a break but do not insert vertical space.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andrew Borodin
54215184f5 (editcmd_dialog_select_definition_show): minor refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andreas Mohr
0327191c24 editcmd_dialogs.c: Cleanup -Wcast-align warning
Found by Clang 6.0.1

editcmd_dialogs.c:474:20: warning: cast from 'char *' to 'etags_hash_t *' (aka 'struct etags_hash_struct *') increases required alignment from 1 to 8 [-Wcast-align]
        curr_def = (etags_hash_t *) tmp_curr_def;
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andrew Borodin
8dcc5d42b0 doc/NEWS: indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andreas Mohr
a4e9e6191a autoconf: remove obsolete ac_onceonly.m4 file
Mininum requirement is autoconf 2.60
This file is only needed for autoconf <= 2.59

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andreas Mohr
217fd64afd autoconf: AC_TRY_LINK is obsolete, use AC_LINK_IFELSE instead.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andreas Mohr
8788ff7010 autoconf: AC_PROG_LIBTOOL is obsolete, use LT_INIT instead.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andreas Mohr
8e12753bfc autoconf: AC_ERROR is obsolete, use AC_MSG_ERROR instead.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andrew Borodin
7fb06b3105 Use g_queue_clear_full().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andrew Borodin
aa9d18e3ed (examine_cd): refactoring: use GString.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andrew Borodin
f4d448629f lib/util.c: fix coding style.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andrew Borodin
1876ef7b84 lib/utilunix.c: fix coding style.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andrew Borodin
c652ab9ccc mcviewer: remove useless assertions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andrew Borodin
e13ac553d3 (edit_clean): no need in NULLization before purge.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andreas Mohr
5b858d8e6e Fix implicit fallthrough.
Signed-off-by: Andreas Mohr <and@gmx.li>
2019-02-03 12:47:59 +03:00
Andrew Borodin
ae6f15f29e tar.c: cleanup: remove unused defines, replace tabs with spaces.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andrew Borodin
4a25dc2e94 Report Aspell support (if enabled) in the output of mc -V.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andrew Borodin
762c8ed2d1 src/filemanager/panel.c: (cd_up_dir): new function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andrew Borodin
8299455519 (parse_display_format): refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andrew Borodin
3e92c40a38 Reafctor panel format storage: use GSList.
Rename structure.
Constify some function arguments.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Andrew Borodin
27470f3989 Use input_is_empty() to check the state of WInput widgets.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:59 +03:00
Teresa e Junior
2a24ba2016 (init_subshell_precmd): remove irrelevant comments about fish."
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:58 +03:00
Andrew Borodin
5839db4fc9 src/filemanager/panel.c: fix coding style.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:58 +03:00
Andrew Borodin
798f3bb74e Remove unised WPanel::format_modified.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:47:58 +03:00
Andrew Borodin
1dd8a47987 Ticket #3955: code cleanup before 4.8.23 release.
Update copyright years.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 12:44:40 +03:00
Andrew Borodin
76d6430666 Merge branch '3965_mc.ext_include'
* 3965_mc.ext_include:
  mc.ext: add Markdown binding.
  Ticket 3965: mc.ext: fix include/ sections order.
2019-02-01 20:20:17 +03:00
legends2k
2181cabe6b mc.ext: add Markdown binding.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-01 20:19:33 +03:00
Andrew Borodin
6f562116cc Ticket 3965: mc.ext: fix include/ sections order.
include/ sections should be placed at the end of bindings.
Thanks legends2k for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-01 20:19:27 +03:00
Andrew Borodin
3ac46bf2b1 Ticket #3966: file highlighting updates.
.go, .s: highlight as source;
.m4v: highlighting as media.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-01 19:55:40 +03:00
Andrew Borodin
9572fb0b78 Merge branch '3962_geeqie'
* 3962_geeqie:
  Ticket #3962: support Geeqie image viewer.
2019-01-26 16:33:56 +03:00
Andreas Mohr
01f1206186 Ticket #3962: support Geeqie image viewer.
Use Geeqie (a fork of GQview) as main image viewer, fallback to GQview.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-01-26 16:31:38 +03:00
Andrew Borodin
985e8f4971 Merge branch '3960_aix'
* 3960_aix:
  Ticket 3960: fix compilation fail on AIX 7.2.
2019-01-19 19:11:22 +03:00
Andrew Borodin
56320a3314 Ticket 3960: fix compilation fail on AIX 7.2.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-01-19 19:08:01 +03:00
Andrew Borodin
b52ff8c614 Merge branch '3948_network_connect_from_any_panel'
* 3948_network_connect_from_any_panel:
  Stamp path at panel destroy.
  (vfs_stamp_path): get rid of path conversion.
  (nice_cd): allow create network connection from any panel type.
  Ticket 3948: can't create network link from panel...
2019-01-13 12:37:45 +03:00
Andrew Borodin
f920c6cd37 Stamp path at panel destroy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-01-13 12:33:07 +03:00
Andrew Borodin
ba6845f2d6 (vfs_stamp_path): get rid of path conversion.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-01-13 12:33:06 +03:00
Andrew Borodin
b4e0bf13c8 (nice_cd): allow create network connection from any panel type.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-01-13 12:33:06 +03:00
Andrew Borodin
96520f48c3 Ticket 3948: can't create network link from panel...
other than file list (tree, quick view, info).

Initial step: extend file panel creation API:
  * create an empty panel;
  * create panel with specified size.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-01-13 12:32:51 +03:00
Yury V. Zaytsev
4b46e61947 Update doc/NEWS file
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-12-29 18:41:02 +03:00
Yury V. Zaytsev
e40afb2dc0 Update hints translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-12-29 18:35:24 +03:00
Yury V. Zaytsev
936e4cfec1 Update translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-12-28 22:56:07 +03:00
Andrew Borodin
91a428db5c Merge branch '3915_cleanup'
* 3915_cleanup: (24 commits)
  Update po/*.po files.
  src/filemanager/panelize.c: fix coding style.
  Sync with gnulib 844f63f9576ebb74fde62e5017bf838c69db22c4.
  Sync with gnulib 1ff0e9684bb83a8277ffe22ac125ce7e90f6702b.
  Sync with gnulib e96dcbcbc5142bd04c6c2e9e4595d9bea910fb3b.
  Sync with gnulib 23671eec22f5221a2dff50942f24c41bcf9caeaf.
  Sync with gnulib 8ae091f7c8cd35cc7dff82c544d04da6fd095e11.
  Sync with gnulib 4d4877e6c2123c4862c321f3eab28a55bf886216.
  Sync with gnulib cbc85bb67fc628349e0351b835efc9e91cd0482f.
  Sync with gnulib be9e66b37c948df517ee905b4a9689a50946409c.
  (make_symlink): rename variable.
  (do_move_dir_dir): rename variables.
  (copy_dir_dir): rename variables.
  misc/syntax/Syntax.in: simplify regex for PO and CUDA syntaxes.
  misc/syntax/Syntax.in: fix regex for Meson syntax.
  dir_list: fix memory leak when list is free'd.
  Sync with gnulib f7a6286e04209da1bc7b1820002b6a5c32638369.
  Sync with gnulib d1327df1f1c9bae26571e6699800c8d1c4712afb.
  Sync with gnulib fa3e2ad20d10d648cc74a5d320ce531a80ff7b1f.
  Sync with gnulib 74c29c68bba3fe7c2f02eb3fc9f7ef196cec1bc6.
  ...
2018-11-24 18:13:49 +03:00
Andrew Borodin
455a8d0f25 Update po/*.po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-11-24 18:13:28 +03:00
Andrew Borodin
177c64cd2f src/filemanager/panelize.c: fix coding style.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-11-24 14:40:42 +03:00
Andrew Borodin
9c6a8e6c24 Sync with gnulib 844f63f9576ebb74fde62e5017bf838c69db22c4.
* m4.include/gnulib/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update
comments.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-11-24 14:40:42 +03:00
Andrew Borodin
03e69e1f36 Sync with gnulib 1ff0e9684bb83a8277ffe22ac125ce7e90f6702b.
mountlist: Remove support for Cray with UNICOS 9.

* m4.include/gnulib/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't
  define MOUNTED_LISTMNTENT.
* src/filemanager/mountlist.c: Remove MOUNTED_LISTMNTENT case.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-11-24 14:40:42 +03:00