Slava Zanko
c6e094f483
Added makefile's targets for run cppcheck
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
tiandrey
b34e1d2988
From ticket #3057 : Update for Syntax.in file
...
This patch fixes syntax highlighting for files in .config directory
(I was wondering why my rc.lua file in ~/.config/awesome is highlighted
as 'Java File' while in /etc/xdg/awesome it was highlighted correctly).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Slava Zanko
49805a3e23
Ticket #3051 : Prepare for release mc-4.8.11
...
From ticket #3044 : mc.lib typo: linenog
mc.lib has a typo. "less=%filename +%linenog" instead of "+%lineno"
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Andrew Borodin
ab344e21b0
Merge branch '3096_save_setup_message'
...
* 3096_save_setup_message:
Ticket #3096 : clarify "Setup saved to ~/.config/mc/ini" message.
2013-11-23 14:58:38 +04:00
Andrew Borodin
ef90859a8f
Ticket #3096 : clarify "Setup saved to ~/.config/mc/ini" message.
...
The "Options -> Save setup" menu entry tells me "Setup saved to
~/.config/mc/ini".
This information is misleading, since this is not the only file
written, e.g. panels.ini is also updated.
Now this message contains the directory only:
"Setup saved to ~/.config/mc".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-23 14:57:50 +04:00
Andrew Borodin
d501e20b9e
Merge branch '3105_move_dir_crash'
...
* 3105_move_dir_crash:
Ticket #3105 : fix crash when moving directories on different file systems
2013-11-22 14:21:21 +04:00
Andrew Borodin
bae94b7acd
Ticket #3105 : fix crash when moving directories on different file systems
...
...in case "Verbose operation" option is off.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-22 14:20:42 +04:00
Slava Zanko
edf9a499d3
Merge branch '3101_gplib_fixes'
...
* 3101_gplib_fixes:
Ticket #3101 : F3 doesn't work on .so files in FreeBSD 9.x
2013-11-22 13:16:04 +03:00
Slava Zanko
0bc183c842
Ticket #3101 : F3 doesn't work on .so files in FreeBSD 9.x
...
FreeBSD 9.x doesn't accept syntax for viewing lib) files
processed by /usr/local/libexec/mc/ext.d/misc.sh
revealing "/usr/local/libexec/mc/ext.d/misc.sh: 25: Syntax error: | unexpected".
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-22 13:15:53 +03:00
Slava Zanko
efa06663e2
Merge branch '3098_strip_home'
...
* 3098_strip_home:
Ticket #3098 : vfs_path_from_str_flags() doesn't support VPF_STRIP_HOME
2013-11-13 11:12:35 +03:00
Slava Zanko
a57d45d590
Ticket #3098 : vfs_path_from_str_flags() doesn't support VPF_STRIP_HOME
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-08 16:57:42 +03:00
Andrew Borodin
91027154a2
Merge branch '3018_path_completion'
...
* 3018_path_completion:
Ticket #3018 : broken directory completion.
2013-11-07 21:24:24 +04:00
Andrew Borodin
09f1818bed
Ticket #3018 : broken directory completion.
...
In the command line, the subdirectory completion in current directory
isn't performed if stub isn't starting with './'.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-07 21:23:43 +04:00
Andrew Borodin
ed65223a23
Merge branch '3084_dlg_highlight_first_widget'
...
* 3084_dlg_highlight_first_widget:
Ticket #3084 : (dlg_init): fix order of messages sent to widgets during dialog initialization.
2013-11-07 16:00:08 +04:00
Andrew Borodin
c7b7a299e3
Ticket #3084 : (dlg_init): fix order of messages sent to widgets during dialog initialization.
...
If checkbox is the first focusable widget in a dialog, it taken the MSG_DRAW
message after MSG_FOCUS one and therefore wasn't highlighted.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-07 15:59:26 +04:00
Andrew Borodin
83ea8e0f14
Merge branch '3076_num_history_items_recorded_0'
...
* 3076_num_history_items_recorded_0:
Refactoring of WInput history.
Remove WInput::field_width. Use Widget::cols instead.
(input_update): don't do anything if widget is unowned or is in inactive dialog.
Ticket #3076 : copy/move doesn't work if num_history_items_recorded=0.
2013-11-07 15:54:24 +04:00
Andrew Borodin
5a61ac80d0
Refactoring of WInput history.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-07 15:53:53 +04:00
Andrew Borodin
de94164cb5
Remove WInput::field_width. Use Widget::cols instead.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-07 15:53:53 +04:00
Andrew Borodin
e16e33a186
(input_update): don't do anything if widget is unowned or is in inactive dialog.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-07 15:53:53 +04:00
Andrew Borodin
d8bb31c665
Ticket #3076 : copy/move doesn't work if num_history_items_recorded=0.
...
How to reproduce:
1. Set num_history_items_recorded=0 in my $HOME/.config/mc/ini
2. Run mc.
3. Press F5 to copy and then enter.
Result: nothing happens.
Solution: refactoring of initial text usage in input line.
Use def_text to fill WInput:buffer when WInput is created.
Then overwrite WInput::buffer content from history if history usage
is enabled.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-07 15:53:53 +04:00
Andrew Borodin
f5f177e711
Fix indentation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-06 16:38:52 +04:00
Andrew Borodin
51769255b9
Merge branch '3050_bg_colors'
...
* 3050_bg_colors:
Ticket #3050 : don't use bright colors as background ones.
2013-11-06 16:12:14 +04:00
Andrew Borodin
e5e0a77bc9
Ticket #3050 : don't use bright colors as background ones.
...
Only following colors can be used in 16-color skins:
black, red, green, brown, blue, magenta, cyan, lightgray.
Following colors are replaced in 16-color skins:
white -> lightgray
yellow -> brown
brightgreen -> green
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-17 09:28:19 +04:00
Andrew Borodin
535bc899ad
Refresh all translations.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:50:54 +04:00
Andrew Borodin
5a04c1ede2
Indentation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:27:24 +04:00
Andrew Borodin
f02dff7462
Merge branch '3051_cleanup'
...
* 3051_cleanup: (36 commits)
Ticket #3092 : fix some minor manual formatting errors.
Ticket #3091 : iso9660: fix truncated filenames.
Ticket #3089 : (load_panelize): drop deprecated "find -perm +xxx" syntax.
Clarify usage of SA_RESTART.
(check_file_access): return FALSE if Esc was pressed.
NEWS: Fix wording, "ignorance" is inappropriate here.
mc.1.in: Fix typo with clipboard_paste command.
Remove input_set_origin(). Use widget_set_size() instead.
(input_destroy): don't call input_free_completions() twice.
More tests for canonicalize_pathname().
Remove redundant checks for g_strdup().
Use vfs_translate_path() to avoid extra string duplication.
(vfs_translate_path): return const char *.
src/vfs/extfs/helpers/urar.in: add comment.
(extfs_get_path_int): fix memory leak.
Directory size: rename variables for consistency.
(do_compute_dir_count): display directory name only.
Typo.
(edit_ok_to_exit): get rid of file name string duplication.
(widget_init): init pos_flags member to WPOS_KEEP_DEFAULT.
...
2013-10-04 09:16:07 +04:00
Egmont Koblinger
9c80a46095
Ticket #3092 : fix some minor manual formatting errors.
...
* "OnDumbTerminals" appears as one word.
* Unnecessary linebreak at "Vertical or Horizontal" (under Panel split).
* Inconsistency: some dots missing.
* Fix obsolete URL and e-mail address.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:09 +04:00
Oleksandr Natalenko
97d7bdfd77
Ticket #3091 : iso9660: fix truncated filenames.
...
±1 problem results in truncating filenames in ISO file listing. This
commit fixes the issue.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:09 +04:00
Andrew Borodin
50734c0716
Ticket #3089 : (load_panelize): drop deprecated "find -perm +xxx" syntax.
...
Use "find -perm /xxx" instead.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:09 +04:00
Andrew Borodin
6a05f30ecf
Clarify usage of SA_RESTART.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:09 +04:00
Andrew Borodin
c26c3cc4fd
(check_file_access): return FALSE if Esc was pressed.
...
edit_query_dialog2() returns (-1) in this case.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:09 +04:00
Paul Sokolovsky
c3d1cf74d1
NEWS: Fix wording, "ignorance" is inappropriate here.
...
Merriam-Webster dictioanry defines ignorance as "a lack of knowledge,
understanding, or education". It's quite different from "ignoring",
meaning "not considering".
Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:09 +04:00
Paul Sokolovsky
3145a40e08
mc.1.in: Fix typo with clipboard_paste command.
...
Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:09 +04:00
Andrew Borodin
c058e92586
Remove input_set_origin(). Use widget_set_size() instead.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:08 +04:00
Andrew Borodin
b0a793c420
(input_destroy): don't call input_free_completions() twice.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:08 +04:00
Andrew Borodin
61dc030772
More tests for canonicalize_pathname().
...
(custom_canonicalize_pathname): fix wrong condition. Remove redundant
break.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:08 +04:00
Andrew Borodin
e78b1fdf66
Remove redundant checks for g_strdup().
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:08 +04:00
Andrew Borodin
20ab79ba00
Use vfs_translate_path() to avoid extra string duplication.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:08 +04:00
Andrew Borodin
034e973fbf
(vfs_translate_path): return const char *.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:08 +04:00
Andrew Borodin
ae824a3622
src/vfs/extfs/helpers/urar.in: add comment.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:08 +04:00
Andrew Borodin
e4747a8c5d
(extfs_get_path_int): fix memory leak.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:08 +04:00
Andrew Borodin
0fb3e0a3c7
Directory size: rename variables for consistency.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:08 +04:00
Andrew Borodin
01d6801f4e
(do_compute_dir_count): display directory name only.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:08 +04:00
Andrew Borodin
a6b3cc8f24
Typo.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:08 +04:00
Andrew Borodin
5d1d542da9
(edit_ok_to_exit): get rid of file name string duplication.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:07 +04:00
Andrew Borodin
200cb115ab
(widget_init): init pos_flags member to WPOS_KEEP_DEFAULT.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:07 +04:00
Andrew Borodin
1b041ad484
(add2panelize_cmd): minor optimization and type accuracy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:07 +04:00
Andrew Borodin
5e81b4be89
(do_panelize_cd): minor optimization.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:14:07 +04:00
Andrew Borodin
0a784f4d2e
(mc_search_regex__process_append_str): minor optimization and cosmetics.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:12:08 +04:00
Andrew Borodin
fbdf3adfbf
(mc_search__cond_struct_new_regex_accum_append): minor optimization.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-10-04 09:12:08 +04:00