Pavel Roskin
42da92333f
* utilunix.c (tilde_expand): Preserve tilde if the username
...
could not be found. Don't ever return NULL. Change callers not
to check for NULL.
2003-11-27 09:45:22 +00:00
Pavel Roskin
e55f09f530
* dialog.c (do_select_widget): New function that it the only one
...
calling dlg_focus() and dlg_unfocus(). Incorporate code from
other functions that did it.
(dlg_select_widget): Change return type to void.
2003-11-27 08:59:54 +00:00
Pavel Roskin
04b4194371
* dialog.h (dlg_widget_active): New function - check if the
...
widget is active.
* boxes.c (display_callback): Use it.
* layout.c (swap_panels): Likewise.
* screen.c (do_panel_event): Likewise.
2003-11-27 00:46:39 +00:00
Pavel Roskin
73241613c2
* dialog.c: Eliminate callback macro.
2003-11-27 00:34:00 +00:00
Pavel Roskin
bf4c26959c
* dialog.c (dlg_replace_widget): Use dlg_select_widget().
...
(select_a_widget): Rename to select_other_widget(), factorize
most code from dlg_one_up() and dlg_one_down().
2003-11-27 00:17:43 +00:00
Pavel Roskin
0657d80ec7
Done: VFS crash.
2003-11-26 21:26:11 +00:00
Pavel Roskin
645eeb8118
* complete.c (check_is_cd): Simplify logic, use isspace().
2003-11-24 21:22:00 +00:00
Pavel Roskin
baa4e26cdc
* hotlist.c (add_new_group_input): Clean up.
...
* wtools.c (do_create_message): Eliminate g_strdup_printf().
(bg_message): Likewise.
2003-11-24 20:34:45 +00:00
Pavel Roskin
20b89d5436
* view.c (check_left_right_keys): Implement fast scrolling if
...
Ctrl is pressed. Idea by Arpad Biro <biro_arpad@yahoo.com>
2003-11-21 06:27:14 +00:00
Pavel Roskin
d839fbc15a
* execute.c (do_execute): Use get_key_code(), not getch() to
...
consume all characters from a single sequence.
Reported by Miven Dooligan <dooligan@intergate.ca>
2003-11-21 05:31:59 +00:00
Pavel Roskin
a128188ae1
Warning fixes for FreeBSD 5.1.
2003-11-21 03:17:18 +00:00
Pavel Roskin
99e6b0f929
* glibcompat.h: Provide replacement for g_slist_delete_link().
...
Reported by Pavel S. Shirshov <pavelsh@mail.ru>
2003-11-20 20:25:33 +00:00
Pavel Roskin
948cfd2606
* util.c (load_mc_home_file): Eliminate g_strdup_printf().
2003-11-20 18:38:29 +00:00
Pavel Roskin
474fc58d94
* user.c (expand_format): Preserve "%" if followed by a
...
characted without special meaning.
2003-11-19 22:56:07 +00:00
Pavel Roskin
bf39c2c4ef
* glibcompat.h: Define g_try_realloc as realloc for glib 1.2.x.
2003-11-14 20:48:13 +00:00
Pavel Roskin
4a9c0da0b0
* main.c (midnight_callback): Ctrl-Shift-Enter now copies full
...
path to the command line, like in Total Commander.
2003-11-14 20:43:11 +00:00
Pavel Roskin
29d16f22be
Typo fixes.
2003-11-14 14:40:25 +00:00
Pavel Roskin
b57b6069b9
Fixed: VFS split.
2003-11-14 08:27:22 +00:00
Pavel Roskin
d739c12313
Shift most changes to "After 4.6.1". Add most urgent regressions.
2003-11-13 17:32:31 +00:00
Pavel Roskin
12d78ba8df
* boxes.c: Include "../vfs/gc.h" if VFS is used.
...
* hotlist.c: Likewise.
* key.c: Likewise.
* main.c: Likewise.
* setup.c: Likewise.
2003-11-07 23:50:18 +00:00
Pavel Roskin
083d26f3c8
* view.c (free_file): Don't use check_error_pipe(), display
...
error messages in close_error_pipe().
* utilunix.c (check_error_pipe): Remove, it's unused.
2003-11-07 21:15:47 +00:00
Pavel Roskin
0a9c708bec
Fixes for bad strings:
...
"In this cases"
"~/.netrc file has not correct mode"
Reported by Arpad Biro <biro_arpad@yahoo.com>
2003-11-05 00:33:34 +00:00
Pavel Roskin
fce80af570
* widget.[ch] (listbox_search_text): Constify "text" argument.
...
(listbox_add_item): Ditto.
* find.c (add_to_list): Make inline.
(stop_idle): Ditto.
(status_update): Ditto.
(get_list_info): Ditto.
(push_directory): Constify "dir" argument and use
concat_dir_and_file() instead of g_strdup().
(find_add_match): Constify "dir" and "file" arguments.
(insert_file): Ditto. Don't append trailing PATH_SEP, it's done
in push_directory().
(search_content): Constify "directory" and "filename" arguments.
(do_search): Make "directory" char * instead of char[].
2003-10-30 16:43:22 +00:00
Pavel Roskin
0ba019a90b
* configure.in: Use AC_CHECK_MEMBERS to check fields of struct
...
stat. Adjust all dependencies.
2003-10-29 17:36:16 +00:00
Pavel Roskin
8bc40b44f0
Fix includes not to rely on $(top_srcdir) being in the include path.
2003-10-29 08:54:22 +00:00
Pavel Roskin
036d1d4602
* fsusage.c: Merge ...
...
* mountlist.c: ... here. These files are closely related. Move
some defines from extraconf.h here.
* fsusage.h: Remove.
* Makefile.am: Remove fsusage.c and fsusage.h.
2003-10-29 08:12:44 +00:00
Pavel Roskin
5f35b799bb
No need to undefine USE_NETCODE.
2003-10-29 06:58:14 +00:00
Pavel Roskin
87206cfeb5
* ext.c (regex_check_type): Use mc_getlocalcopy() instead of
...
piping first 8k to "file". If the user selected the file, we
are likely to need the whole file. Besides, mc_getlocalcopy()
on ftpfs and fish shares file cache with other VFS operations.
(get_file_type_pipe): Remove.
(mc_doublepopen): Likewise.
(mc_doublepclose): Likewise.
2003-10-29 01:15:16 +00:00
Pavel Roskin
ffddff51ea
* utilunix.c: Move mc_doublepopen() and mc_doublepclose() ...
...
* ext.c: ... where they are used.
2003-10-27 21:51:48 +00:00
Pavel Roskin
0e71b37f2a
Don't include background.h if it's not needed.
...
If needed, add explanation.
2003-10-27 17:36:19 +00:00
Pavel Roskin
e829a85981
* slint.c (mc_refresh): Revert last change - it breaks screen
...
restoring on rxvt.
2003-10-27 17:34:57 +00:00
Pavel Roskin
1ddf30732b
* tree.c (tree_rmdir_cmd): Don't change to the root directory -
...
it's not needed now.
2003-10-27 17:21:13 +00:00
Pavel Roskin
2bf7ae1b6c
* win.c (check_movement_keys): Add support for Ctrl-PgDown,
...
Ctrl-PgUp, Ctrl-Home and Ctrl-End.
2003-10-27 05:59:03 +00:00
Pavel Roskin
290426d17a
* terms.c: Merge ...
...
* win.c: ... here.
* Makefile.am: Remove terms.c.
2003-10-26 07:02:13 +00:00
Pavel Roskin
24384e9a89
* panel.h: Fix duplication between cpanel and current_panel in
...
favor of current_panel. Ditto opanel and other_panel.
2003-10-26 06:45:59 +00:00
Pavel Roskin
bb13ad8db4
* main.c (get_current_panel): Remove.
...
(get_other_panel): Move ...
* layout.c: ... here.
2003-10-26 06:32:42 +00:00
Pavel Roskin
dca92d4941
Trivial cleanup.
2003-10-26 06:16:54 +00:00
Pavel Roskin
5b876f358d
* info.h: Don't expose WInfo internals.
2003-10-26 05:54:55 +00:00
Pavel Roskin
26e444a11c
* background.c (tell_parent): Eliminate.
...
(background_attention): Use error code instead.
* file.c (panel_operate): Exit with code 0, not 1.
2003-10-26 05:42:29 +00:00
Pavel Roskin
211ce16fac
* wtools.c: Merge mc_message() and message() into one background
...
safe function message(). Fix all callers.
2003-10-26 04:47:20 +00:00
Pavel Roskin
f9e5058942
Include global.h, not i18n.h.
2003-10-26 04:15:17 +00:00
Pavel Roskin
82688029da
* i18n.h: Include into global.h.
...
* Makefile.am: Remove i18n.h.
2003-10-26 04:11:12 +00:00
Pavel Roskin
d35cffb9d9
Clean up includes.
2003-10-26 04:03:07 +00:00
Pavel Roskin
06f9c3d0c1
Add:
...
Safe and restore file position in the viewer.
2003-10-26 01:34:47 +00:00
Pavel Roskin
a08f91eb63
* background.c: Clean up includes.
...
(do_background): Set current_dlg to NULL for the child process.
* dialog.h (do_complete_refresh): Don't use we_are_background.
* file.h: Remove dependency on background.h.
* background.h: Define we_are_background. Move mc_message() ...
* wtools.h: ... here.
* key.h: Don't define we_are_background.
* slint.c (mc_refresh): Use current_dialog instead of
we_are_background to fix compilation without WITH_BACKGROUND.
2003-10-26 00:58:14 +00:00
Pavel Roskin
ec7f14f929
* background.c (do_background): Use pipe() instead of less
...
portable socketpair(). Close comm[0] in the child.
2003-10-25 22:15:52 +00:00
Pavel Roskin
d999b186f1
* wtools.c (mc_message): Fix argument expansion.
2003-10-25 22:13:01 +00:00
Pavel Roskin
00d12acfb3
* background.c: Leave only code used when WITH_BACKGROUND is
...
defined. The rest goes ...
* wtools.c: ... here.
2003-10-25 21:54:55 +00:00
Pavel Roskin
67e8519191
* background.c: Remove mymsg.
2003-10-25 21:15:54 +00:00
Pavel Roskin
f75d4598eb
* util.c (msglen): Constify first argument.
...
* wtools.c (query_dialog): Constify string argments.
(create_message): New function, forked from message().
(message): Return void. Allocate memory dynamically.
* wtools.h: Eliminate D_INSERT. Adjust all users.
2003-10-25 21:12:05 +00:00