Support for fish subshell didn't show a prompt, because fish_prompt function
was overridden to pass current path to mc.
Now user can specify a fish_prompt_mc function to use a mc specific
prompt, if none is specified fish_prompt is copied to fish_prompt_mc to
use the default prompt. The new implementation of fish_prompt calls
fish_prompt_mc to display a prompt before exit. Cwd is passed to mc as
before.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Current php.syntax (Utopic 3:4.8.12-1) gets confused with embedded HTML or DOCTYPE statements with strings.
Here's a suggested patch to fix it.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
* 2136_status_window:
mcedit: apply status message for file load process.
mcedit: apply status message for search process.
(edit_buffer_calc_percent): new editor buffer API.
mcviewer: apply status message for search process.
mcviewer: refactoring of percentage display.
Apply status message for directory size calculation.
(label_set_textv): new WLabel API.
(simple_status_msg_t): simple status message with label and 'Abort' button.
Create status dialog window to interrupt long-time operations.
Ticket #2136: implement user-friendly interruption of long-time operations.
Such dialog allows:
* show status of operation;
* control operation using dialog buttons (Abort, Suspend, Resume, etc).
Status dialog is raised after specified delay after operation start.
If operation duration is less than delay, the status dialog is not raised.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Initial step: created a simple timer.
Unlike GTimer, mc timer doesn't use a lot of multiplications and
divisions to convert seconds to nanoseconds and back. mc timer use only
multiplications to convert seconds to microseconds.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 3189_cleanup: (47 commits)
Make working with GError in more right way (like with exceptions).
Sync with gnulib 6da37d4814fb6d1c61169de4092205a056a04a21.
(mcview_set_datasource_string): minor optimization.
select_flags: make member of panels_options_t.
(panel_execute_cmd): concentrate handling of select/unselect files here.
(FileProgressStatus): change values to avoid overlapping with B_* values.
(listbox_event): clarify check whether listbox is empty.
Sync with gnulib 502809019bd2ca3ce3d041d18c35ce9420eedb72.
(do_enter): make inline and return gboolean instead of int.
(panel_get_title_without_hotkey): return pointer to static buffer
Sync with gnulib f345edc03da1a81f313dd70305764025bffeb1fa.
src/filemanager/panel.c: clarify condition in 'for' statements.
(move_selection): variable is boolean instead of int.
(maybe_cd): argument is boolean instead of int.
src/filemanager/panel.c: use variable initialization
src/filemanager/panel.c: 'else' after 'return' is useless.
src/filemanager/panel.[ch]: make some functions inline.
src/filemanager/panel.c: cosmetics: empty lines, extra braces.
(parse_display_format): minor optimization: get rid of strchr() call.
src/filemanager/panel.[ch]: use gboolean instead of int for boolean variables.
...
Do not classify a bind-mounted dir entry as "dummy".
* m4.include/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
1-argument getmntent() (instead of assuming absence).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Avoid hasmntopt const type warning on Solaris.
Solaris defines the OPT param of hasmntopt() with char * instead of
const char *. Passing the constant string "ignore" generates a compiler
warning. For Solaris cast MNT_IGNORE to avoid the warning.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(do_enter_on_file_entry_t): rename back to do_enter_on_file_entry and
return gboolean instead of int.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Port 'open' and 'close' redefinitions to AIX 7.1.
Do not #undef 'open' and 'close'. AIX 7 does '#define open open64' and
then 'int open64(const char *, int, ...);', which means the declaration
for 'open' gets lost if we later '#undef open'. Discovered while
building grep pretest 2.18.151-1c770 on AIX 7.1, where the compilation
reported the non-fatal error "In function 'openat_proc_name' ...
warning: implicit declaration of function 'open'". In this case the
error is relatively harmless, but in other cases it might not be so
minor.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>