Commit Graph

13420 Commits

Author SHA1 Message Date
Andrew Borodin
646b662eb0 (lock_get_info): type accuracies and related changes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-01 11:48:07 +03:00
Andrew Borodin
4ce4c9b7dc Remove GLib-compatible code related to GLib < 2.26. 2016-01-01 11:48:06 +03:00
Mooffie
5fad7508c5 button_get_text() shouldn't return 'const'.
As it's a newly allocated string which the caller needs to free.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-01 11:48:06 +03:00
Mooffie
2627da4b73 panel.h: remove unused variable declaration.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-01 11:48:06 +03:00
Mooffie
162f8a9fa7 Ticket #3555: panel.h: define typedef list_type_t.
We use 'typedef' to make it conform with all other type declarations
in that file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-01 11:48:06 +03:00
Slava Zanko
84c81f1f92 Remove duplicate code from src/subshell/common.c.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2016-01-01 11:48:06 +03:00
Slava Zanko
7f383fbd6b Add mc_shell_init() and mc_shell_deinit() functions.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2016-01-01 11:48:06 +03:00
Slava Zanko
0e79be1b7a Introduce mc_shell_t type.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2016-01-01 11:48:06 +03:00
seyko
81f0b3c6e8 Fix current e-mail of seyko
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-01 11:48:06 +03:00
Andrew Borodin
e2391af431 (init_subshell_child): use exist_file().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-01 11:48:06 +03:00
Andrew Borodin
d23c80c422 src/subshell/common.c: respect coding guidelines.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-01-01 11:48:06 +03:00
Slava Zanko
974ab368ec Ticket #3547: code cleanup before 4.8.16 release.
Move subshell stuff into subdir.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2016-01-01 11:48:06 +03:00
Andrew Borodin
24d09babd8 Merge branch '3537_isofs_dotfiles'
* 3537_isofs_dotfiles:
  isofs: fix incorrect awk comparison operator
  Ticket #3537: isofs fix: do not skip all .dotfiles
2015-12-31 11:06:26 +03:00
Denys Vlasenko
545e341c68 isofs: fix incorrect awk comparison operator
SEMICOLON = "YES" is not a correct comparison op (should use ==),
it's assignment! As a result, sub(";1$", "", name) was always executed.

Untested - I have no idea when SEMICOLON is not "YES"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-12-31 11:05:46 +03:00
Denys Vlasenko
6d48c59efb Ticket #3537: isofs fix: do not skip all .dotfiles
There is a simple bug in iso9660 helper:

    if (name ~ /^\.\.?/) next

means "skip all lines which start with one or two dots".
Author probably meant:

    if (name ~ /^\.\.?$/) next

I propose to not be cryptic and just check both possibilities separately.

The below trivial patch was tested to work: now I see
the file named ".dot" in a test iso file.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2015-12-31 11:05:46 +03:00
Mooffie
2540595b0f Better subshell doc.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-12-31 10:57:09 +03:00
Andrew Borodin
72e20fce47 Merge branch '3543_mcview_not_found'
* 3543_mcview_not_found:
  (mcview_do_search): clarify seach start and end positions.
  (mcview_do_search): cleanup variables.
  Ticket #3543: mcview: "Not found" result isn't reported in some cases.
2015-12-31 10:50:37 +03:00
Andrew Borodin
8b6c172880 (mcview_do_search): clarify seach start and end positions. 2015-12-31 10:48:57 +03:00
Andrew Borodin
5d76c8e2c2 (mcview_do_search): cleanup variables. 2015-12-31 10:48:57 +03:00
Andrew Borodin
d3a2ca3e12 Ticket #3543: mcview: "Not found" result isn't reported in some cases.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-12-31 10:48:57 +03:00
Andrew Borodin
1cf18abd62 Merge branch '3554_listbox_wrap'
* 3554_listbox_wrap:
  Listbox: don't wraparound on mouse scroll.
  Ticket #3554: Listbox: don't wraparound on mouse scroll.
2015-12-31 10:43:29 +03:00
Andrew Borodin
99dd99172f Listbox: don't wraparound on mouse scroll.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-18 21:24:53 +03:00
Mooffie
e86072497f Ticket #3554: Listbox: don't wraparound on mouse scroll.
Initial commit: Listbox code cleanup.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-18 21:24:46 +03:00
Andrew Borodin
a5cd0093c5 Update Russian translation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-10 22:02:15 +03:00
Andrew Borodin
f8bdfcc21c Get ru.po from Transifex.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-10 21:49:25 +03:00
Andrew Borodin
4f7ea7754f NEWS: add #3530 to 4.8.15 fixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-10 20:25:06 +03:00
Slava Zanko
b5bfa00130 Merge branch '2742_ash'
* 2742_ash:
  revert changes related to BASH shell prompt
  Code refactoring
  Improve subshell chapter in online help
  Minor code changes.
  New subshell types Busybox ash + Debian ash (dash) and some more enhancements plus fish chdir bugfix
  Make MC's special commands not show up in bash's history and also suppress consecutive identical commands.
  Ticket #2742: [Subshell] Support for ash + bugfixes for bash, fish
2015-11-10 15:58:18 +03:00
Slava Zanko
0d6d1d0d5c revert changes related to BASH shell prompt
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2015-11-10 13:29:46 +03:00
Slava Zanko
bf1ff69fb8 Code refactoring
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2015-11-10 13:29:45 +03:00
Alexander Kriegisch
a6246373b4 Improve subshell chapter in online help
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2015-11-10 11:55:39 +03:00
Alexander Kriegisch
09ed02ea85 Minor code changes.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2015-11-10 11:55:38 +03:00
Alexander Kriegisch
f596c916a4 New subshell types Busybox ash + Debian ash (dash) and some more enhancements plus fish chdir bugfix
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2015-11-10 11:55:35 +03:00
Alexander Kriegisch
039fd561d2 Make MC's special commands not show up in bash's history and also suppress consecutive identical commands.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2015-11-10 11:33:03 +03:00
Alexander Kriegisch
239f695d83 Ticket #2742: [Subshell] Support for ash + bugfixes for bash, fish
Fix non-functional INPUTRC for bash (variable was unset and never used)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2015-11-10 11:33:03 +03:00
Yury V. Zaytsev
2e651d00bd Update mc.pot
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2015-11-08 21:21:47 +01:00
Slava Zanko
bd95fd7b97 Updated doc/NEWS file
Signed-off-by: Slava Zanko <v.zanko@godeltech.com>
2015-11-06 14:37:48 +03:00
Slava Zanko
01a7a5d24f Updated the hints translations from Transifex
Signed-off-by: Slava Zanko <v.zanko@godeltech.com>
2015-11-06 14:30:59 +03:00
Slava Zanko
979509ebca Updated translations from Transifex
Signed-off-by: Slava Zanko <v.zanko@godeltech.com>
2015-11-06 14:27:02 +03:00
Slava Zanko
a787a7a0d4 Merge branch '3534_fix_prompt_command'
* 3534_fix_prompt_command:
  Ticket #3534: Fix Bash's PROMPT_COMMAND variable.
2015-11-06 12:12:55 +03:00
Egmont Koblinger
aa3ec5b260 Ticket #3534: Fix Bash's PROMPT_COMMAND variable.
Another solution.

Signed-off-by: Slava Zanko <v.zanko@godeltech.com>
2015-11-06 12:12:05 +03:00
Slava Zanko
2ac925050d Indentation fix
Signed-off-by: Slava Zanko <v.zanko@godeltech.com>
2015-11-06 11:16:06 +03:00
Slava Zanko
1f4a344b6b Merge branch '3534_fix_prompt_command'
* 3534_fix_prompt_command:
  Ticket #3534: Fix Bash's PROMPT_COMMAND variable.
2015-11-06 11:06:00 +03:00
Egmont Koblinger
5d1944ee82 Ticket #3534: Fix Bash's PROMPT_COMMAND variable.
Signed-off-by: Slava Zanko <v.zanko@godeltech.com>
2015-11-05 16:17:20 +03:00
Slava Zanko
7c157945d0 Merge branch '3420_cleanup'
* 3420_cleanup: (35 commits)
  Reimplement handling of ev_vfs_print_message_t message.
  Fix typos.
  Ticket #3539: fix reported -Wshadow warning with gcc 4.6.x
  (vfs_get_current_dir): avoid string duplication.
  mountlist: refactoring: reimplement mount list using GSList.
  Sync with gnulub c6148bca89e9465fd6ba3a10d273ec4cb58c2dbe.
  mcview: zero extension of char to int.
  Ticket #3522: (edit_suggest_current_word): fix memory leak.
  Ticket #3521: (edit_load_macro_cmd): fix memory leak.
  Ticket #3520: free editor macros when closing mc.
  (prepend_error_and_exit): fix format.
  Clarify __attribute ((format (printf))) usage.
  Fix calls of vfs_print_message().
  Fix calls of fish_command().
  (gauge_callback): fix draw of progress bar.
  Rename mcview_t back to WView to be consistent with other widget names.
  src/editor/editbuffer.c: fix typo.
  Add default cases for switch(){} construction in smbfs
  (nice_cd): use INPUT_LAST_TEXT.
  Ticket #3495:(edit_ext_cmd): use INPUT_LAST_TEXT.
  ...
2015-11-05 14:35:09 +03:00
Andrew Borodin
97f65abd94 Reimplement handling of ev_vfs_print_message_t message.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:33:21 +03:00
Andrew Borodin
70fa973f47 Fix typos.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:33:21 +03:00
Andreas Mohr
b457921fda Ticket #3539: fix reported -Wshadow warning with gcc 4.6.x
src/filemanager/dir.c: In function 'dir_list_grow':
src/filemanager/dir.c:263:14: warning: declaration of 'clear' shadows a global declaration [-Wshadow]

src/viewer/datasource.c: In function 'mcview_load_command_output':
src/viewer/datasource.c:398:16: warning: declaration of 'pipe' shadows a global declaration [-Wshadow]

(This not occur with gcc 4.7 or higher).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:33:21 +03:00
Andrew Borodin
3e622b822e (vfs_get_current_dir): avoid string duplication.
(vfs_get_current_dir_n): new function returned newly allocated string.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:33:21 +03:00
Andrew Borodin
e4c1ae80eb mountlist: refactoring: reimplement mount list using GSList.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:33:21 +03:00
Andrew Borodin
88612bc618 Sync with gnulub c6148bca89e9465fd6ba3a10d273ec4cb58c2dbe.
mountlist: add me_mntroot field on Linux machines.

Populate me_mntroot in mount_entry so Linux machines based on
/proc/self/mountinfo can distinguish between bind mounts and original
mounts. In reality bind mounts aren't treated differently than
mountroot=/ mounts by the kernel, but the user often wants these bind
mounts distinguished.

Currently, this in not used in mc, but probably can be used in future.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:33:20 +03:00