Commit Graph

14049 Commits

Author SHA1 Message Date
Yury V. Zaytsev
c2336348e0 maint: add #3775 to NEWS
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-02-26 14:16:31 +01:00
Mooffie
fc6e3832a6 Merge branch '3775_hostlist_refresh'
* 3775_hostlist_refresh:
  Pressing <right> and <left> in hotlist dialog doesn't refresh it.
2017-02-26 12:39:16 +02:00
Mooffie
ac23a4807c Pressing <right> and <left> in hotlist dialog doesn't refresh it.
Signed-off-by: Mooffie <mooffie@gmail.com>
2017-02-26 12:38:39 +02:00
Andrew Borodin
1878f49114 Update Russian translation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-02-26 08:10:02 +03:00
Andrew Borodin
f34363f93b (make_symlink): add missing space in error message.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-02-26 08:04:15 +03:00
Yury V. Zaytsev
d6740ec01c Update po/mc.pot
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-02-24 23:02:50 +01:00
Yury V. Zaytsev
60faabd06d Update doc/NEWS file
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-02-24 22:24:44 +01:00
Yury V. Zaytsev
c901d17044 Fix format spec in bg.po & it.po (%ld -> %lu)
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-02-24 22:11:54 +01:00
Yury V. Zaytsev
bac6632624 Update hints translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-02-24 22:02:01 +01:00
Yury V. Zaytsev
a8be9aee6d Update translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-02-24 21:59:10 +01:00
Yury V. Zaytsev
ab4fcb6d30 Revert "Ticket #3687: store the 'hotlist' file in data dir, not config dir."
This reverts commit 306b30ed30.
2017-02-24 21:32:01 +01:00
Mooffie
1db93c1b60 Merge branch '3754_helpviewer_tabs'
* 3754_helpviewer_tabs:
  Ticket #3754: Help viewer doesn't handle tabs correctly.
2017-02-23 20:55:44 +02:00
Mooffie
1f121b7674 Ticket #3754: Help viewer doesn't handle tabs correctly.
Upon seeing a tab, the help viewer effectively pushes the *current* word
forward.

Instead, it should first finish handling the current word (that is, print it on
screen) and only then adjust the column.

Signed-off-by: Mooffie <mooffie@gmail.com>
2017-02-23 19:35:56 +02:00
Yury V. Zaytsev
1a3ba4edbd Merge branch '3774_editor_buttons' 2017-02-19 21:58:23 +01:00
Mooffie
256c3f1838 Improve comment for dx variable
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Mooffie <mooffie@gmail.com>
2017-02-19 21:57:30 +01:00
Egmont Koblinger
fa951f8c5d Ticket #3774: mcedit - fix mouse active area for maximize / close buttons
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Egmont Koblinger <egmont@gmail.com>
2017-02-19 19:47:18 +01:00
Mooffie
9ccd22310a Merge branch '3760_wedit_over_buttonbar'
* 3760_wedit_over_buttonbar:
  WEdit shouldn't draw frame over buttonbar.
  WEdit shouldn't handle mouse events of overlapping buttonbar.
  Ticket #3760: Fix aborts of MSG_MOUSE_DOWN.
2017-02-19 00:26:43 +02:00
Mooffie
f6ceb8d16d WEdit shouldn't draw frame over buttonbar.
When dragging a framed WEdit with the mouse, the frame is painted over the
buttonbar. This happens in two cases: when pressing the mouse down, and when
releasing it.

The patch fixes the problem by calling edit_update_screen() in these two cases.
This paints the buttonbar over the frame.

(The problem doesn't occur when moving the frame with the keyboard because
edit_callback(msg==MSG_KEY) calls edit_update_screen() right after handling the
key.)

Signed-off-by: Mooffie <mooffie@gmail.com>
2017-02-19 00:04:38 +02:00
Mooffie
0481b8e790 WEdit shouldn't handle mouse events of overlapping buttonbar.
Signed-off-by: Mooffie <mooffie@gmail.com>
2017-02-19 00:04:38 +02:00
Mooffie
5ea5c5deb6 Ticket #3760: Fix aborts of MSG_MOUSE_DOWN.
This patch was supposed to get committed as part of #3571 but this never
happened. We commit it now as we depend on its functionality for the next
commit.

Signed-off-by: Mooffie <mooffie@gmail.com>
2017-02-19 00:04:38 +02:00
Egmont Koblinger
20a2b6081c Ticket #3724: add true color skins: "Four seasons"
Signed-off-by: Egmont Koblinger <egmont@gmail.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-02-16 22:09:30 +01:00
Mooffie
25b4096ace Merge branch '3766_add_widget_autopos'
* 3766_add_widget_autopos:
  Ticket #3766: add_widget_autopos() doesn't remove focus from the previously focused widget.
2017-02-09 18:00:43 +02:00
Andrew Borodin
e83409b6d7 Ticket #3766: add_widget_autopos() doesn't remove focus from the previously focused widget.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-02-09 17:49:34 +02:00
Mooffie
b39c1b9446 Merge branch '3763_run_listbox_with_data'
* 3763_run_listbox_with_data:
  (dialog_switch_list): simplify the listbox selector.
  (edit_window_list): simplify the listbox selector.
  Ticket #3763: introduce run_listbox_with_data().
2017-01-30 01:12:39 +02:00
Mooffie
bc46978036 (dialog_switch_list): simplify the listbox selector.
We use the new run_listbox_with_data().

Signed-off-by: Mooffie <mooffie@gmail.com>
2017-01-29 23:32:13 +02:00
Mooffie
6273b46bb5 (edit_window_list): simplify the listbox selector.
We use the new run_listbox_with_data().

Signed-off-by: Mooffie <mooffie@gmail.com>
2017-01-29 23:32:13 +02:00
Mooffie
11c1aff4d3 Ticket #3763: introduce run_listbox_with_data().
Signed-off-by: Mooffie <mooffie@gmail.com>
2017-01-29 23:32:04 +02:00
Alexey Shipunov
a4f05e5123 Initial support of R syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-29 09:54:24 +03:00
Andrew Borodin
0a28622921 misc/syntax/Makefile.am: fix sort order.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-29 09:48:37 +03:00
Sergey Sharybin
d02abd003a Ticket #3762: initial support of OpenShadingLanguage highlighting.
Based on C syntax with some extra keywords gathered from OSL's lexer rules.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-29 09:40:31 +03:00
Yury V. Zaytsev
1e32dace62 Merge branch 'vorakl-skin-yadt' 2017-01-24 20:55:31 +01:00
Oleksii Tsvietnov
91c96494f2 skins: add yet another dark theme (YADT) by vorakl (MidnightCommander/mc#115)
Signed-off-by: Oleksii Tsvietnov <me@vorakl.name>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-01-24 20:49:40 +01:00
Sergei Trofimovich
bc8eb09256 vfs/tar/tar.c: add makedev() declaration
Noticed as a build failure on gentoo/glibc-2.24 as:

      CCLD     mc
    ./.libs/libinternal.a(tar.o): In function `tar_fill_stat':
    /home/slyfox/dev/git/mc/src/vfs/tar/tar.c:428: undefined reference to `makedev'
    collect2: error: ld returned 1 exit status

The change uses "lib/unixcompat.h" to pull
'makedev()' declaration from proper header.

Signed-off-by: Sergei Trofimovich <siarheit@google.com>
2017-01-22 17:05:39 +00:00
Andrew Borodin
9845fa6ce5 Merge branch '3693_cleanup'
* 3693_cleanup: (22 commits)
  Update copyright years.
  (tar_fill_stat): add omitted breaks.
  Aggressive use of whitespace() and whiteness() macros.
  WCheck, WRadio: send MSG_MOTIFY without parameter.
  Fish shell integration: ignore mc's prompt in history.
  (tty_color_get_name_by_index): cleanup format compiler warning.
  Cleanup comma compiler warnings.
  (sftpfs_open_file): GCC zero initialization bug workaround.
  Cleanup maybe-uninitialized compiler warnings.
  (mc_search__g_regex_match_full_safe): don't use negative string length.
  mcedit: syntax.syntax: highlight comments preceded by spaces.
  misc/syntax/Syntax.in: fix patterns.
  Use g_queue_free_full().
  (mc_search__cond_struct_new_regex_ci_str): add documentation.
  option_auto_syntax: change type to gboolean.
  src/setup.c: minor refactoring of main options load.
  setup: split integer and boolean options.
  Change type from int to gboolean for variables controlled by checkboxes.
  WCheck: change type of 'state' from int to gboolean.
  WCheck: remove unused C_CHANGE.
  ...
2017-01-22 19:13:49 +03:00
Andrew Borodin
e9fd11bfcd Update copyright years.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 19:12:55 +03:00
Andrew Borodin
b9085cc1c8 (tar_fill_stat): add omitted breaks.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:45:56 +03:00
Andrew Borodin
28ca14d73a Aggressive use of whitespace() and whiteness() macros.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Andrew Borodin
e0c02c9c77 WCheck, WRadio: send MSG_MOTIFY without parameter.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Fabian Homborg
4e74d7d255 Fish shell integration: ignore mc's prompt in history.
Fish does something equivalent to bash's "HISTCONTROL=ignoreboth" by default,
so simply prefixing a command with a space will let it be ignored.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Andreas Mohr
469dc1352b (tty_color_get_name_by_index): cleanup format compiler warning.
Found by GCC 6.2.0.

color-internal.c:186:33: error: format '%X' expects argument of type 'unsigned int', but argument 3 has type 'int' [-Werror=format=]

Signed-off-by: Andreas Mohr <and@gmx.li>
2017-01-22 18:44:22 +03:00
Andreas Mohr
238d3ac53c Cleanup comma compiler warnings.
Found by Clang 3.9.0.

Signed-off-by: Andreas Mohr <and@gmx.li>
2017-01-22 18:44:22 +03:00
Andrew Borodin
04c1eb6160 (sftpfs_open_file): GCC zero initialization bug workaround.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Andreas Mohr
8f304f558d Cleanup maybe-uninitialized compiler warnings.
Found by GCC 6.2.0.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Andrew Borodin
37de8e6253 (mc_search__g_regex_match_full_safe): don't use negative string length.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Mooffie
2e078ff774 mcedit: syntax.syntax: highlight comments preceded by spaces.
Comments don't have to start at the 1st column. We add support for this case.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Andrew Borodin
079d989877 misc/syntax/Syntax.in: fix patterns.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Andrew Borodin
1ff4005228 Use g_queue_free_full().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Mooffie
c0abaa6508 (mc_search__cond_struct_new_regex_ci_str): add documentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Andrew Borodin
d078ae4713 option_auto_syntax: change type to gboolean.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00
Andrew Borodin
cd3a5ee373 src/setup.c: minor refactoring of main options load.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2017-01-22 18:44:22 +03:00