Andrew Borodin
516eca2658
src/edit/syntax.c (syntax_keyword_t, context_rule_t): use gboolean for boolean fields.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 19:29:23 +03:00
Andrew Borodin
000235c7ee
Ticket #3955 : code cleanup before 4.8.23 release.
...
src/editor/syntax.c: fix coding style.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-04-27 19:29:23 +03:00
Andrew Borodin
19fa75f7a2
Ticket #3958 : speed up of large directory structures delete.
...
(file_progress_show_deleting): reduce update rate of delete status
window. Use the way as in c31e413b2a
.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-03-24 14:59:03 +03:00
Andrew Borodin
ac689ea726
(overwrite_query_dialog): add "Don't overwrite with zero length file" option.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-03-02 12:26:18 +03:00
Andrew Borodin
a07cb50069
(overwrite_query_dialog): redesign the overwrite query dialog.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-03-02 12:25:29 +03:00
Andrew Borodin
67653322a3
(overwrite_query_dialog): add "If smaller" option.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-03-02 12:25:03 +03:00
Andrew Borodin
e6397c0561
Ticket #3935 : extra optopns in n "File exists" query dialog.
...
(overwrite_query_dialog): rename "Update" button to "If older".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-03-02 12:25:03 +03:00
Andrew Borodin
a2a5fa017e
Fix file version sort.
...
Use filevercmp() instead of str_verscmp().
Source code of filevercmp() is taken from Gnulib.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-03-02 11:24:07 +03:00
Sergii Pylypenko
49493dc8e0
Ticket #3487 : mcedit: fixed invalid syntax highlighting
...
...when both context and keyword end with a newline.
To reproduce, create .c or .cxx file and open it in mcedit:
\#endif // preprocessor macro with one-line comment
int code; /* <-- this line is colorized incorrectly */
int code2; /* <-- next line is colorized properly */
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-09 10:40:43 +03:00
Andreas Mohr
9f4e2b945f
(panel_new_with_dir): variable 'err' is assigned a value that is never used.
...
Found by cppcheck 1.81
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:10:01 +03:00
Andreas Mohr
2153fa8b61
(load_setup): reduce variable scope.
...
Found by cppcheck 1.81.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:10:01 +03:00
Andreas Mohr
cedf33301a
(mcview_display_hex): reduce variable scope.
...
Found by cppcheck 1.81.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:10:01 +03:00
Andreas Mohr
371d69e8ba
(check_hardlinks): suspicious condition (assignment + comparison).
...
Clarify expression with parentheses.
Found by cppcheck 1.81.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:10:00 +03:00
Andrew Borodin
04e26ca78b
src/filemanager/filegui.c: fix coding style.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:10:00 +03:00
Andrew Borodin
6fb25ed8ce
File operations: rename variables.
...
(move_file_file): rename variables.
(query_replace): likewise.
(file_progress_real_query_replace): likewise.
file_op_context_ui_t): rename members.
(erase_dir): rename argument.
(file_progress_show_source): likewise.
(file_progress_show_target): likewise.
(my_mkdir_rec): likewise.
(my_mkdir): likewise.
(my_rmdir): likewise.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:10:00 +03:00
Andrew Borodin
1c621d1a86
Sync with gnulib a3d1c7849936e481ae10dea5312a36a448a5d5bf.
...
src/filemanager/mountlist.c: use Linux code on Android.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:10:00 +03:00
Andrew Borodin
5505ed054d
Sync with gnulib 248cb6a2499ffa5a9e652d05e61c4a959fbae605.
...
src/filemanager/mountlist.c: port better to Android.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:10:00 +03:00
Andrew Borodin
66cf2a5a75
src/filemanager/treestore.c: fix coding style, minor refactoring.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:10:00 +03:00
Andrew Borodin
f28a5ed9e4
src/filemanager/tree.c: fix coding style, minor refactoring.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:10:00 +03:00
Andrew Borodin
9bc3f5db29
WTree: use gboolean type for boolean members.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2019-02-03 13:10:00 +03:00
Andrew V. Samoilov
326ecb9207
(find_do_view_edit): Remove unused variable. Found by PVS-Studio:V575
...
Signed-off-by: Andrew V. Samoilov <a.samoilov@gmail.com>
2019-02-03 13:10:00 +03:00
Andrew V. Samoilov
1fd726e70c
(smbfs_fake_share_stat): Remove unneeded g_free(NULL) (PVS-Studio:V575)
...
Signed-off-by: Andrew V. Samoilov <a.samoilov@gmail.com>
2019-02-03 13:09:59 +03:00
Andrew V. Samoilov
ceefccbd5a
(tree_do_search): fix possible off-by-one (PVS-Studio:V557)
...
Signed-off-by: Andrew V. Samoilov <a.samoilov@gmail.com>
2019-02-03 13:09:59 +03:00
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
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
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
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
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