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
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
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
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
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
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
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
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
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
Egmont Koblinger
030fa4640a
Find File: highlight result in viewer.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-10-18 18:20:27 +02:00
Egmont Koblinger
1a5f7f3fcf
mcview: allow set start and end of search result...
...
...to highlight some externally found text.
2015-10-18 18:20:09 +02:00
Egmont Koblinger
7e622158a2
Ticket #3530 : viewer: highlight Find File's result.
...
Initial commit: (WLEntry): add free_data member to free or keep the data
on entry's removal.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-10-18 18:19:26 +02:00
Andrew Borodin
280bf87680
Ticket #3496 : (dir_list_sort): do not call qsort for 'unsorted' sort order
...
...since qsort may shuffle first and last files in some lists.
Thanks Nicolas Rybkin for the original patch.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-10-18 17:57:35 +02:00
Dmitry Koterov
a943ac933d
extfs s3+: support for non-ASCII characters in filenames
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-08-19 16:50:16 +03:00
Mooffie
4a58ece618
Change focused button for mcedit user menu selector.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-08-15 17:52:36 +03:00
Mooffie
24cd2bae8d
Ticket #3493 : user menu selector: make "User", not "Local", the focused button.
...
On the menu selector two buttons are shown. Users are more likely to
want to edit their central user menu, so we move the focus there.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-08-15 17:51:58 +03:00
Andrew Borodin
15bf7b4bbd
Ticket #3489 : fix reloading of panelized file panel.
...
How to reproduce the bug:
1) Add something to 'Panelize'. It works with 'Find file' and 'External
panelize' too.
2) Press C-o several (at least two) times (or run some console command).
3) Panel is now empty
* (reload_panelized): always chdir to panel's cwd to refresh the VFS's cwd
before file list update.
* (update_panels): change order of panel update: first update other panel,
then current one. Remove internal variable. Fix description.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-08-15 15:44:18 +03:00
Andrew Borodin
c3db552bfc
(find_file): minor optimization of memory free.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-08-14 20:54:49 +03:00
Andrew Borodin
677b5c4f40
Ticket #3475 : (find_file): fix memory leaks.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-08-14 20:54:49 +03:00
Andrew Borodin
b918ff1499
(panel_save_setup): fix comparison between signed and unsigned.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-24 18:39:45 +03:00
Andrew Borodin
df5e689bba
(parse_mc_v_argument): fix unused parameter 'value'.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-24 18:34:43 +03:00
Andrew Borodin
25968f0931
Indentation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-05-24 18:28:23 +03:00