Commit Graph

14117 Commits

Author SHA1 Message Date
Sergei Epiphanov
fd3d4e2784 Ticket #3804: syntax: update Ada 95 keywords (ALT Linux #33330)
Signed-off-by: Sergey Y. Afonin <asy@altlinux.org>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-04-04 19:29:46 +02:00
Yury V. Zaytsev
7e57d6e776 maint: add ts.syntax to build system / tarballs
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-03-19 10:51:27 +01:00
Oleksandr Sidko
b1e16edd5a Ticket #3794: syntax: TypeScript support (closes MidnightCommander/mc#122)
Signed-off-by: Oleksandr Sidko <mortiy@gmail.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-03-19 10:40:07 +01:00
Oleksandr Sidko
834e07fd57 Ticket #3793: syntax: javascript - ES2015 support (closes MidnightCommander/mc#121)
Signed-off-by: Oleksandr Sidko <mortiy@gmail.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-03-16 17:09:00 +01:00
Mooffie
556d213a65 Merge branch '3786_rpm_echo'
* 3786_rpm_echo:
  extfs: rpm: use printf instead of echo, when retrieving fields.
  extfs: rpm: wrap variable in quotes.
  extfs: rpm: use printf instead of echo, to calculate DESCRIPTION length.
  Ticket #3786: extfs: rpm: fix test's "expected output".
2017-03-09 18:35:24 +02:00
Mooffie
a6cd7c9f45 extfs: rpm: use printf instead of echo, when retrieving fields.
We switch to using 'echo' instead of 'printf', for the reason described in a
previous commit.

This time, however, we don't do this in order to preserve the value of the
DESCRIPTION field (because we retrieve it using some other command). We do this
for two reasons:

* As chance would have it, we have the string '\c' in our DESCRIPTION. It turns
  out that Dash's echo interprets '\c' to mean the end of the data[1], so
  fields stored in $AllTAGS after DESCRIPTION aren't seen by our sed script
  (resulting in the helper not reporting a few file entries).

* We also have '\n' in DESCRIPTION. This would translate, by echo, into
  newline, failing the naive sed script.

[1] See "\c as in SYSV echo - abort all processing..." in the source code of
    Dash: https://github.com/gioele/dash/blob/master/src/bltin/printf.c

Signed-off-by: Mooffie <mooffie@gmail.com>
2017-03-09 01:03:42 +02:00
Mooffie
25aa5db3fd extfs: rpm: wrap variable in quotes.
Our goal is to replace the 'echo' with 'printf' on this line, for the reason
described in the previous commit. But before we do this we need to wrap one
variable in quotes.

This preliminary step does not affect the output of the helper.

As for using "tr \n ' '": this mimics the current behavior (when using no
quotes around the variable, newlines are converted to spaces by the shell; now
that we do have quotes we need to do this conversion ourselves). An alternative
is to tweak the sed script to be smarter, but it turns out it's not a simple
task.

Signed-off-by: Mooffie <mooffie@gmail.com>
2017-03-09 01:03:41 +02:00
Mooffie
95f2f14357 extfs: rpm: use printf instead of echo, to calculate DESCRIPTION length.
Out test input intentionally contains weird characters in the DESCRIPTION field
(see the file 'test.spec'[1]).

It turns out that backslash sequences, as in our DESCRIPTION field, are
processed by the 'echo' command in some shells (i.e., Dash). In other words,
'echo' can't be used to print arbitrary data verbatim. Indeed, the standard
says[2] that "if any of the operands contain a <backslash> character, the
results are implementation-defined". You can see the problem by running:

    $ echo "one \\a two"

under both Bash and Dash: you'll get different results.

The solution: we replace 'echo' with 'printf'.

[1] https://midnight-commander.org/browser/tests/src/vfs/extfs/helpers-list/misc/rpm/test.spec#L34
[2] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html

Signed-off-by: Mooffie <mooffie@gmail.com>
2017-03-09 01:03:41 +02:00
Mooffie
e2f5034303 Ticket #3786: extfs: rpm: fix test's "expected output".
As will be explained in a following commit, our rpm helper has a bug stemming
from the use of 'echo'.

Before we fix it, we update the test's "expected output" to reflect the
intended output (as it's currently reflects a faulty output).

Signed-off-by: Mooffie <mooffie@gmail.com>
2017-03-09 01:03:34 +02:00
Mooffie
fc33f62aaf Merge branch '3787_extfs_tester_sort_locale'
* 3787_extfs_tester_sort_locale:
  Ticket #3787: extfs: tests for helpers using 'sort' may fail.
2017-03-08 14:03:42 +02:00
Mooffie
d0131271f3 Ticket #3787: extfs: tests for helpers using 'sort' may fail.
The "expected output" files we provide must be generated in the same locale the
tester (that is, the helpers) are run. Otherwise helpers using the 'sort'
utility may generate output different than our provided "expected output",
hence failing the tests.

Therefore we:

(1) Regenerate the "expected output" files in the C locale.

(2) Make sure the tester is run in the C locale.

(Tip: to regenerate the "expected output" files we deleted all the *.output
files and run the tester with "LC_ALL=C ./run --create-output".)

Signed-off-by: Mooffie <mooffie@gmail.com>
2017-03-08 14:01:46 +02:00
Mooffie
f8fa16aaa2 Merge branch '3784_extfs_tester_diff'
* 3784_extfs_tester_diff:
  extfs: tester: fix indentation.
  Ticket #3784: extfs: add diff output to tester.
2017-03-08 11:35:07 +02:00
Mooffie
f782b037d8 extfs: tester: fix indentation.
No code is modified here. Only whitespace.

Signed-off-by: Mooffie <mooffie@gmail.com>
2017-03-08 11:34:09 +02:00
Mooffie
55624eae3b Ticket #3784: extfs: add diff output to tester.
Signed-off-by: Mooffie <mooffie@gmail.com>
2017-03-07 23:57:35 +02:00
Yury V. Zaytsev
91b69d2652 Ticket #3782: highlight txz extension as archive like tgz, etc.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-03-06 21:44:26 +01:00
Yury V. Zaytsev
151b08b412 Ticket #3693: clarify that lack of noreturn attribute is on purpose
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-03-04 18:52:12 +01:00
Yury V. Zaytsev
f09d863ddf Revert "(my_exit): cleanup no attribute noreturn warning."
This reverts commit b91ab44b43.
2017-03-04 18:27:02 +01:00
Yury V. Zaytsev
8f49a93aa2 Update translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2017-03-04 10:06:09 +01:00
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