Commit Graph

12955 Commits

Author SHA1 Message Date
Eugene San (eugenesan)
65b83b3efc From ticket #3116: fix segfault in cpio VFS while reading corrupted RPM.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:27:03 +04:00
Eugene San (eugenesan)
198334ccc4 From ticket #3116: fix possible segfault when freeing a VFS.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:27:03 +04:00
Andrew Borodin
5e7e9ddf32 Ticket #3151: lib/global.h: remove declaration of refresh_screen().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:27:03 +04:00
Andrew Borodin
f0da49345a Collapse list of copyright years to ranges. Add 2014 year.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:27:03 +04:00
Andrew Borodin
d8b58c84be Ticket #3134: fix some inconsistencies in "Learn keys" UI.
Reorder keys in "Learn key" window in accordance with the order
of keys on regular keyboards.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:18 +04:00
Egmont Koblinger
a45ba8054a Ticket #3133: keypad '*' doesn't work with numlock off.
Fix typos in misc/mc.lib.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
Andrew Borodin
57feb5a2bc Ticket #3132: exit without confirmation by default.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
Andrew Borodin
6daf97b402 (panel_operate): variable clean up.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
Andrew Borodin
04f8c63a72 (move_dir_dir): variable clean up.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
Andrew Borodin
dab425e7fc src/filemanager/file.c: tweak indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
Andrew Borodin
9c806f7661 doc/NEWS: cosmetics.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
Andrew Borodin
1672c78be4 src/editor/editbuffer.c: typo.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
Andrew Borodin
094fd0cd89 Use symbolic names for standard file descriptors.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
Andrew Borodin
c81c6c9f54 (setup_cmdline): fixup of prompt truncation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
Andrew Borodin
15043e15b0 Clarify --skin key in RU man page.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
David Haller
48352fcc73 Ticket #3073: clarify regex in urar helper.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
Andrew Borodin
675de9a7db (panel_compute_totals): fix display of directory scanning statistics.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
Andrew Borodin
249c3e2470 Ticket #3113: code cleanup before 4.8.12 release.
misc/ext.d/text.sh.in: don't concatenate directory and full file name.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-10 16:26:17 +04:00
Andrew Borodin
1dcafad6ff Fix indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-07 10:02:08 +04:00
Andrew Borodin
866663f455 Merge branch '3123_file_operation_prompt'
* 3123_file_operation_prompt:
  Refresh po/*.po files.
  Ticket #3123: clarify file operation prompt.
2014-02-07 09:39:33 +04:00
Andrew Borodin
a45030b512 Refresh po/*.po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-07 09:38:47 +04:00
Andrew Borodin
26f0930919 Ticket #3123: clarify file operation prompt.
In the delete confirmation dialog, the question mark is on its own line.
This is gramatically incorrect in English.

(panel_operate_generate_prompt): totally rewrite.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-07 09:36:14 +04:00
Andrew Borodin
96d90e5b51 Merge branch '3156_toggle_hidden_fix'
* 3156_toggle_hidden_fix:
  Ticket #3156: fix of panels redraw after toggling hidden files.
2014-02-07 09:27:28 +04:00
Andrew Borodin
651bb2e86e Ticket #3156: fix of panels redraw after toggling hidden files.
(toggle_show_hidden): redraw both panels forced after toggling
hidden files. The bug is appeared when toggling is performed
by mouse clicking on icon in the panel title: current panel
is updated, other one isn't.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-07 09:26:47 +04:00
Andrew Borodin
38629e21de Merge branch '3150_achown_list_esc'
* 3150_achown_list_esc:
  Ticket #3150: achown: escape on user list should not accept value.
2014-02-07 09:23:04 +04:00
Andrew Borodin
13199786ed Ticket #3150: achown: escape on user list should not accept value.
Open the Advanced chown dialog. Navigate to owner or group, and press
Enter. A dialog enlisting the available usernames or groups appears.

Move up or down in this dialog, then press double Esc or F10.

Actual behavior: The selected value gets accepted, just as if Enter was
pressed.

Expected behavior: The user or group is not changed, as if this dialog
was not opened at all.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-07 09:22:25 +04:00
Andrew Borodin
cb3aefebd0 Merge branch '1666_paragraph_format_1st_line'
* 1666_paragraph_format_1st_line:
  Rename src/editor/{wordproc.c => format.c}.
  Ticket #1666: fix paragraph formatting.
2014-02-05 12:42:52 +04:00
Andrew Borodin
2794826ec7 Rename src/editor/{wordproc.c => format.c}. 2014-02-05 12:42:24 +04:00
Andrew Borodin
ccb7ab341e Ticket #1666: fix paragraph formatting.
1st line was shifted after paragraph format.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-05 12:42:24 +04:00
Andrew Borodin
b7209c0c76 Merge branch '3131_copy_move_tilde_expand'
* 3131_copy_move_tilde_expand:
  Ticket #3131: incorrect tilde expandion in copy/rename/move dialog.
2014-02-05 12:38:09 +04:00
Andrew Borodin
13bfb0898d Ticket #3131: incorrect tilde expandion in copy/rename/move dialog.
Revert "(file_mask_dialog): don't call tilde_expand() because
vfs_path_from_str() returns an absolute path."

This reverts commit 1b774ac1fe.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-02-05 12:37:48 +04:00
Andrew Borodin
8b67958674 Merge branch '3157_panel_sort_sign'
* 3157_panel_sort_sign:
  Ticket #3157: unify panel sort arrow's direction.
2014-01-26 14:50:00 +04:00
Egmont Koblinger
3f7baba96c Ticket #3157: unify panel sort arrow's direction.
Fix inconsistency of the arrow's direction in the panel header line
across skins.
Change default value of "sort-sign-down" from "," (comma) to "." (dot).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-01-26 14:48:42 +04:00
Andrew Borodin
a71f320e2f Merge branch '2274_perms_fix'
* 2274_perms_fix:
  Ticket #2274: adjust script permissions to installed ones.
2014-01-26 13:40:11 +04:00
Oswald Buddenhagen
ec33401a2e Ticket #2274: adjust script permissions to installed ones. 2014-01-26 13:38:48 +04:00
Andrew Borodin
c4188ee235 Merge branch '3142_edit_save_check_out_of_date'
* 3142_edit_save_check_out_of_date:
  Ticket #3142: fix file out-of-date-ness check on saving.
2014-01-26 13:26:17 +04:00
Oswald Buddenhagen
58bba43490 Ticket #3142: fix file out-of-date-ness check on saving.
The code depended on the execution and outcome of the hardlink check.
This was bogus - the two checks have nothing in common except the stat()
call they both depend on.
2014-01-26 13:22:58 +04:00
Andrew Borodin
62e1606106 Fix segfault in directory hotlist.
(listbox_get_current): check parameter value before use it's member.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-01-22 13:59:54 +04:00
Andrew Borodin
d26b7dd6ee Merge branch '2857_zip'
* 2857_zip:
  Ticket #2857: add handling .zip extension.
2014-01-14 15:51:52 +04:00
Andrew Borodin
031ab1711c Ticket #2857: add handling .zip extension.
Add 'shell/i/.zoo' to detect zip archive using .zip extension
in addition to 'type/i/^zip\ archive'.

Thanks ctmp1 <gvlatyshev@gmail.com> for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-01-14 15:50:11 +04:00
Andrew Borodin
bc2f24b0e5 Merge branch '3119_format_paragraph'
* 3119_format_paragraph:
  Add editor_stop_format_chars ini option.
  (format_paragraph): fix wrong refactoring.
  Ticket #3119: fix format paragrap formatting.
2014-01-14 14:39:45 +04:00
Andrew Borodin
943320c434 Add editor_stop_format_chars ini option.
This option contains a set of characters to stop paragraph formatting.
If one of those characters is found in the begin of line, that line and
all following lines of paragraph will be untouched. Default value is
"-+*\,.;:&>".

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-01-14 14:38:16 +04:00
Andrew Borodin
06a9feef32 (format_paragraph): fix wrong refactoring.
Partially revert of 253d27b1a3.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-01-14 14:38:16 +04:00
Andrew Borodin
736279aa8a Ticket #3119: fix format paragrap formatting.
(word_start): remove extra decrement.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-01-14 14:38:16 +04:00
Andrew Borodin
7c7ed5ef0c Merge branch '3117_external_editor_line_number'
* 3117_external_editor_line_number:
  Update EN and RU manual pages.
  Launching external editor/viewer with F4/F3 w/o passing line number.
  Allow launch external editor/viewer w/o line number.
  Ticket #3117: Launching editor with CK_Edit shouldn't pass line number.
2014-01-14 14:25:34 +04:00
Andrew Borodin
a7e516220c Update EN and RU manual pages.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-01-14 14:23:02 +04:00
Andrew Borodin
9757d53cf4 Launching external editor/viewer with F4/F3 w/o passing line number.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-01-14 14:23:02 +04:00
Andrew Borodin
cef5286fce Allow launch external editor/viewer w/o line number.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-01-14 14:23:02 +04:00
Andrew Borodin
9d83d55d84 Ticket #3117: Launching editor with CK_Edit shouldn't pass line number.
When pressing F4 to start the editor, a "+1" argument is passed to open
the file at the first line.

For some editor this is absolutely unnecessary since they open the file
there anyways. For some others (at least "joe", but probably others too)
this is harmful: joe has a convenience feature that by default it opens
the file where it was last open, unless of course overridden from
command line. Currently mc forces joe to open the file at the first
line, although opening it where it was last open would be much more
desired.

The right solution would be to consult mc.lib only when opening the
viewer/editor through the "word search in files (M-?)" feature, and
not when F3/F4 is pressed on a file, in the latter case $VIEWER or
$EDITOR should simply be launched with the filename but no additional
parameters.

Initial step: minor refactoring:
(do_edit_at_line): rename to edit_file_at_line.
(edit_file_at_line): changed type of arguments from int to gboolean.
(view_file_at_line): likewise.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-01-14 14:23:02 +04:00
Andrew Borodin
f949a29422 Merge branch '2290_find_file_speedup'
* 2290_find_file_speedup:
  Refactoring of WListbox widget.
  Optimize updates of status bar during search.
  Ticket #2290: make file find faster.
2014-01-14 14:15:54 +04:00