Commit Graph

13139 Commits

Author SHA1 Message Date
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
Andrew Borodin
fdc094324d mcview: zero extension of char to int.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:33:20 +03:00
Andreas Mohr
75039d9d4f Ticket #3522: (edit_suggest_current_word): fix memory leak.
Free each element of spell suggest array.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:33:20 +03:00
Andrew Borodin
acd9433148 Ticket #3521: (edit_load_macro_cmd): fix memory leak.
Create mc_config object only when macro list is empty.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:33:20 +03:00
Andreas Mohr
9d59f7f5f6 Ticket #3520: free editor macros when closing mc.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:33:20 +03:00
Andrew Borodin
318df7b2e3 (prepend_error_and_exit): fix format. 2015-11-05 14:33:20 +03:00
Andrew Borodin
d9ad3d2e32 Clarify __attribute ((format (printf))) usage.
Thanks Andreas Mohr <and@gmx.li> for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:33:20 +03:00
Andrew Borodin
bb6f1e6695 Fix calls of vfs_print_message(). 2015-11-05 14:32:54 +03:00
Andrew Borodin
83b1d15c9a Fix calls of fish_command(). 2015-11-05 14:32:54 +03:00
Andrew Borodin
a2fbfce123 (gauge_callback): fix draw of progress bar. 2015-11-05 14:32:53 +03:00
Andrew Borodin
bff225c5ff Rename mcview_t back to WView to be consistent with other widget names. 2015-11-05 14:32:53 +03:00
Andrew Borodin
db0412598e src/editor/editbuffer.c: fix typo. 2015-11-05 14:32:53 +03:00
Slava Zanko
d22018d562 Add default cases for switch(){} construction in smbfs
Signed-off-by: Slava Zanko <v.zanko@godeltech.com>
2015-11-05 14:32:53 +03:00
Mooffie
90339b2f84 (nice_cd): use INPUT_LAST_TEXT.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:53 +03:00
Mooffie
7b1bf8a595 Ticket #3495:(edit_ext_cmd): use INPUT_LAST_TEXT.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:53 +03:00
Mooffie
f32526af33 (edit_mail_dialog): use INPUT_LAST_TEXT instead of static vars.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:53 +03:00
Andrew Borodin
36524251fb (edit_sort_cmd): explicit comparisions and cosmetics.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:53 +03:00
Mooffie
35bd4af787 (edit_sort_cmd): use INPUT_LAST_TEXT instead of static variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:53 +03:00
Andrew Borodin
2bdf2e0407 (edit_goto_cmd): minor optimization and explicit comparision.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:53 +03:00
Mooffie
bbd5f8dd35 (edit_goto_cmd): use INPUT_LAST_TEXT for instead of static vars.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:53 +03:00
Mooffie
cdc87ac5aa (dview_execute_cmd): fix call of dview_goto_cmd().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:52 +03:00
Mooffie
89a79cabe4 Ticket #3420: (dview_goto_cmd): use INPUT_LAST_TEXT instead of static variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:52 +03:00
Andrew Borodin
e9db0a0c12 (vfs_canon): merge local variables. 2015-11-05 14:32:52 +03:00
Andrew Borodin
cb567b5ea6 (vfs_s_print_stats): get rid of static variables.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:52 +03:00
Andrew Borodin
69fb6b91be (i18n_checktimelength): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:52 +03:00
Andrew Borodin
4f45767601 (get_owner): change type of parameter and return value:
return value: from "char *" to "const char *";
parameter: from int to uid_t.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:52 +03:00
Andrew Borodin
a95320cb15 (get_group): change type of parameter and return value:
return value: from "char *" to "const char *";
parameter: from int to gid_t.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:52 +03:00
karlovskiy
0516ccd325 xdg silent open in background
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:52 +03:00
Andrew Borodin
9fa8174227 Sync with gnulib ecabc6b01567522dd542889c353a14f0c2e22f6e.
* src/filemanager/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
Rework types to pacify xlc.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:52 +03:00
Andrew Borodin
615eba776d Ticket #3420: code cleanup before 4.8.15 release.
lib/strutil/*.c: apply template.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-11-05 14:32:51 +03:00
Marco Ciampa
643fe50564 Updated Italian translation 2015-10-26 17:17:14 +01:00
Yury V. Zaytsev
52fd328042 Merge branch '3449_bump_glib_version' 2015-10-20 21:37:00 +02:00