Andreas Mohr
78db983626
Cleanup: args.c: recude function scope for mcedit_arg_*.
...
Reduce to scope for
mcedit_arg_new (const char *file_name, long line_number)
mcedit_arg_vpath_new (vfs_path_t * file_vpath, long line_number)
and move to file scope section.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:37 +03:00
Andreas Mohr
7146508b31
Cleanup: usermenu.c: use const edit_widget.
...
Use const because edit_widget not altered in these functions.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:37 +03:00
Andreas Mohr
fb3d0f13b3
Cleanup: setup.c: reduce function scope.
...
Reduce scope for
void save_config (void);
void save_layout (void);
void panels_load_options (void);
void panels_save_options (void);
and move code to file scope section.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andreas Mohr
7da330ce77
Ticket #3586 : mcedit - fix "Lower case selection" command in User Menu
...
Fix bug #3586 reported by rimf (plus minor tweak remove unneeded
cat/pipe command)
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-03-04 09:23:36 +03:00
Andreas Mohr
9aeacda0d9
lib/vfs/direntry.c: remove unused variables.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
b8d6d348a3
Fix parameter in load_hint() calls.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
dd60bf40dc
(get_random_hint): modify time measurement.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
bad3171a0a
(edit_symlink_cmd): refactoring.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
6f5fc5d528
(get_random_hint): move to src/filemanager/midnight.c.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
1e302a3c63
(get_random_hint): minor optimisation and type accuracy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
28ce7e566e
(load_mc_home_file): return data length.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
e3e4382612
(mcview_load): minor optimisation:
...
* read compression type in magic mode only;
* free temporary variables immediately after use.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
ab2ec1b341
(cpio_open_cpio_file): restore file offset after read of magic number.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
e01a89059b
(tar_open_archive_int): restore file offset after read of magic number.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
c4258d453b
Clarify AM_CPPFLAGS.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
be158faca6
filehighlight: clarify includes.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Mooffie
0d9b120a63
Makefile is missing subshell.h.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
0eae2cb8dc
Unify m4 macro names.
...
Macros get from other projects keep their original names:
gl_FSTYPENAME, AX_PATH_LIB_PCRE, etc.
Macros initially writtem for MC have original names with prefix mc_:
mc_VERSION, mc_CHECK_GLIB, etc
Macros get from other projects and modified for MC keep their
original names with prefix mc_:
mc_cu_PREREQ_STAT_PROG, mc_AC_GET_FS_INFO.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
cc34f778ed
rename: m4.include/ac-glib.m4 -> m4.include/mc-glib.m4
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andreas Mohr
2d7430b520
Cleanup unused option_edit_*_extreme variables.
...
one-way variables as source for macro definitions
Signed-off-by: Andreas Mohr <and@gmx.li>
2016-03-04 09:23:36 +03:00
Andreas Mohr
c2060a420a
Clarify macro variables for USE_INTERNAL_EDIT.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andreas Mohr
785a2fc6e9
(ftpfs_load_no_proxy_list): cleanup unneeded mc_file static cast.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andreas Mohr
d72390a45d
Cleanup internal filemanager layout variables.
...
_free_space and _xterm_title never used.
_command_prompt, _keybar_visible, _menubar_visible, _message_visible used within layout_callback() only.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andreas Mohr
686ce302bd
Clarify mc_args__debug_level declare.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
1528f8e4c4
src/filemanager/usermenu.c: use gboolean type for boolean variables.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
1c26cf804a
src/filemanager/usermenu.c: apply coding guidelines.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
0e1dfbf2b9
(regex_command_for): minor optimisation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Yury V. Zaytsev
391821e4ab
Ticket #3379 : fix bashism in gitfs+ extfs helper
...
Original reporter: Raphael Geissert <atomo64@gmail.com>, upstreamed by
Dmitry Smirnov <onlyjob@member.fsf.org>.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-03-04 09:23:36 +03:00
Andrew Borodin
88b489ee33
filehighlight.ini: externsions are alphabetically sorted.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Andrew Borodin
b3f4fc2212
Ticket 3547: code cleanup bebore 4.8.16 release.
...
filehighlight.ini: add lzma extension.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-03-04 09:23:36 +03:00
Yury V. Zaytsev
10a1c9d846
Merge branch '3577_file_copy_preallocation'
2016-03-02 21:18:13 +01:00
Andrey Gursky
47830e09b4
src/filemanager/file.c: (copy_file_file) fix typo in the error message
...
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-02-29 22:17:35 +01:00
Andrey Gursky
5f63997891
Type accuracy in file operation routines (leftovers)
...
These are leftovers of 159f5fdff1
.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-02-29 22:16:29 +01:00
Andrey Gursky
9ee5766748
Ticket #3577 : Fix preallocation if appending during file copy
...
The value of `ctx->do_append` is reset:
appending = ctx->do_append;
ctx->do_append = FALSE;
Use `appending` in following conditionals instead.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-02-29 22:12:28 +01:00
Yury V. Zaytsev
f69b08bbd0
Merge branch '3599_fish_minor_major'
2016-02-29 21:48:24 +01:00
Andreas Mohr
ee6dd89deb
Ticket #3599 : provide major/minor info for block/char devices (FISH)
...
Perl ls helper did not provide major/minor info for block/char devices,
and `ls -lan` wasn't working because of a typo.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-02-28 22:03:37 +01:00
Andrew Borodin
d5668b60b6
Merge branch '3594_find_file_content'
...
* 3594_find_file_content:
Find File: reorder content related checkboxes.
Find File: describe "Content" input field.
Remove "Search for content" checkbox.
Ticket #3594 : Find file: change behavior of content search.
2016-02-27 09:12:17 +03:00
Andrew Borodin
2f53c46279
Find File: reorder content related checkboxes.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-02-27 09:11:40 +03:00
Andrew Borodin
fee4349ed8
Find File: describe "Content" input field.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-02-27 09:11:40 +03:00
Andrew Borodin
9fba781d45
Remove "Search for content" checkbox.
...
If "Content" input field is empty, don't search for content.
Also disable all content related checkboxes in this case.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-02-27 09:11:40 +03:00
Andrew Borodin
2b6c45a211
Ticket #3594 : Find file: change behavior of content search.
...
Initial commit: refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-02-27 09:11:40 +03:00
Mooffie
ebf57a81fb
Expand comment about hypothetical MSG_ACTIVATE.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-02-23 20:49:13 +03:00
Yury V. Zaytsev
2ed989827f
maint: minor improvements to source index by mooffie
...
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-02-21 20:21:57 +01:00
Andrew Borodin
89bd95c300
Merge branch '3593_find_file_empty_name'
...
* 3593_find_file_empty_name:
Disable some filename related checkboxes if filename is empty.
Find file: describe "File name" input field.
Ticket #3593 : Find file: empty file name matches any file name.
2016-02-21 10:49:23 +03:00
Andrew Borodin
3e8d61bbd5
Disable some filename related checkboxes if filename is empty.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-02-21 10:47:59 +03:00
Andrew Borodin
0e9a3fa57a
Find file: describe "File name" input field.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-02-21 10:39:22 +03:00
Andrew Borodin
ebd6c95e83
Ticket #3593 : Find file: empty file name matches any file name.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-02-21 10:39:22 +03:00
Yury V. Zaytsev
47a86b3362
maint: add indexed source generation to Travis deployment script
...
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-02-19 21:10:32 +01:00
Yury V. Zaytsev
dbb5269100
maint: add Travis CI deployment script
...
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-02-19 21:10:32 +01:00
Yury V. Zaytsev
ae197c7584
maint: add encrypted deploy key for Travis CI
...
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-02-18 21:32:07 +01:00