1
1
Граф коммитов

1442 Коммитов

Автор SHA1 Сообщение Дата
Pavel Roskin
45f6d2fbec * view.c (max_dirt_limit): Make global to match view.h.
* setup.c (options): Actually save max_dirt_limit, which is
documented as a "special setting".
2002-12-27 06:48:33 +00:00
Pavel Roskin
f2cf13159c * key,c (get_modifier): Warning fix. 2002-12-26 21:23:23 +00:00
Pavel Roskin
4cec4a2058 * file.c: Never access internals of ctx->rx directly.
* fileopctx.c (file_op_context_destroy): Use regfree() to free
ctx->rx.
Patch from Red Hat beta.
2002-12-26 19:04:10 +00:00
Pavel Roskin
818d127652 Add comments. 2002-12-26 16:38:25 +00:00
Pavel Roskin
89804295bd * layout.c (setup_panels): Clean the hint bar if it's enabled.
Bug reported by Adam Byrtek <alpha@debian.org>
2002-12-26 16:36:07 +00:00
Pavel Roskin
da0c9299ad * main.c (update_xterm_title_path): New function, display
current path in the xterm window title.
(_do_panel_cd): Call update_xterm_title_path().
(done_mc): Remove final message for the titlebar.
* layout.c: Replace "Xterm hintbar" option with more generic
"Xterm window title".  Update all dependencies.
(setup_panels): Call update_xterm_title_path().
2002-12-26 16:10:45 +00:00
Pavel Roskin
f6bb0e1c2c Formatting change. 2002-12-26 15:16:04 +00:00
Pavel Roskin
541abac5c3 * utilunix.c (mc_tmpdir): Check temporary directory more
carefully.  Report problems and ask user to acknowledge them.
2002-12-26 14:47:46 +00:00
Pavel Roskin
f76e27d6a5 Remove unused declaration. 2002-12-26 11:38:34 +00:00
Pavel Roskin
3286b6e5e2 * main.c (midnight_callback): Fix the last change, so that plain
Enter is not affected.
2002-12-26 10:57:11 +00:00
Pavel Roskin
f2c028ce46 s/can not/cannot/ 2002-12-26 02:21:37 +00:00
Pavel Roskin
befd79dfbc * main.c (copy_prog_name): Make static.
(midnight_callback): Handle both Alt-Enter and Ctrl-Enter before
the widgets, because the input widget interprets them now.
(default_map): Remove Alt-Enter, it's handled elsewhere.
2002-12-26 02:09:41 +00:00
Pavel Roskin
7f3a386062 * key.c (correct_key_code): Convert Shift-Tab and Ctrl-Tab to
Back Tab (used in dialogs to jump to the previous widget).
2002-12-25 23:30:49 +00:00
Pavel Roskin
9393a182b5 * widget.c (input_callback): Insert Enter with a modifier as
literal Enter.  Useful when pasting multiline text.
2002-12-25 23:15:48 +00:00
Pavel Roskin
10391e82cf * cmd.c (execute_with_vfs_arg): New function. Work around
defects of VFS localcopy code.
(view_file_at_line): Use execute_with_vfs_arg().
(do_edit_at_line): Likewise.
2002-12-25 20:55:39 +00:00
Pavel Roskin
bb5a5bcd35 Merge local TODO list. Reorder some entries. 2002-12-25 18:52:54 +00:00
Pavel Roskin
a69bf1d51a Update. Everything planned for 4.6.0-pre2 has been done. 2002-12-25 18:00:15 +00:00
Pavel Roskin
f8958b0a61 * key.c (is_idle): Check for input on input_fd and gpm_fd. 2002-12-25 02:01:31 +00:00
Pavel Roskin
f3ec13cea2 * main.c (init_xterm_support): Revert last change, it doesn't
free all S-Lang memory anyways, but creates portability issues.
2002-12-24 20:22:29 +00:00
Pavel Roskin
76fda9fe79 Fixed:
Find file dialog should not be closed if the regex is invalid.
2002-12-24 11:30:05 +00:00
Pavel Roskin
eb781a8f06 * dlg.h: Add new event DLG_VALIDATE.
* dlg.c (frontend_run_dlg): Send DLG_VALIDATE.
(select_a_widget): Don't send DLG_ONE_DOWN, nobody uses it.
* find.c (find_parm_callback): New callback for the parameter
dialog.  Don't allow stopping the dialog if the regular
expression is invalid.
2002-12-24 11:28:26 +00:00
Pavel Roskin
47e32ea5a5 * layout.c (init_curses) [HAVE_SLANG]: Don't call
SLtt_get_terminfo(), it's already called in slang_init().
* main.c (init_xterm_support): Free term_entry.
2002-12-24 03:37:34 +00:00
Pavel Roskin
107e1f0954 Partly revert last change - subshell_switch_key has to be char. 2002-12-24 03:05:09 +00:00
Pavel Roskin
5da0a2f08a * subshell.c (subshell_switch_key): Make static const int. 2002-12-24 00:13:30 +00:00
Pavel Roskin
f19f91337b * key.c (correct_key_code): Strip or add modifier information
when necessary.  Recognize shift with function key N as function
key (N + 10).  Fix breakage from previous patch.
* key.h: Change XCTRL and ALT macros to use new definitions for
keyboard modifiers.
2002-12-23 09:46:28 +00:00
Pavel Roskin
0d0009e263 * key.c (get_modifier): Make static. Return the mc internal
representation, not the Linux console code.
(correct_key_code): Add the modifier, not strip it.
(ctrl_pressed): Remove.  Adjust all dependencies.
2002-12-21 08:43:15 +00:00
Pavel Roskin
e1805e4350 Move to 4.6.1:
Allow modifiers for keys in mc.lib, like "shift-up".
2002-12-21 07:54:53 +00:00
Pavel Roskin
6e59c48179 * key.h: Add definitions for the keyboard modifiers that can be
part of the key code.
* key.c (xterm_key_defines): Add some common key definitions
with modifiers for xterm and rxvt.
(correct_key_code): Strip and remember modifiers.
(get_modifier): Add support for saved modifiers.
2002-12-21 07:34:49 +00:00
Pavel Roskin
bec62b69f1 * layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 200ms.
If ESCDELAY is 0, ncurses 5.2 may stop recognizing escape
sequences under heavy CPU load.
2002-12-21 02:09:00 +00:00
Pavel Roskin
248e59ed5d * screen.c (chdir_other_panel): Use do_panel_cd() on the
opposite panel instead of changing the current panel twice.
2002-12-20 00:19:38 +00:00
Pavel Roskin
325e5af99d * main.c (make_panels_dirty): Preserve the cursor position. 2002-12-19 23:35:39 +00:00
Pavel Roskin
e12b5ddcb6 * hotlist.c (update_path_name): Update the title even when
opening an empty group.
2002-12-18 05:45:02 +00:00
Pavel Roskin
0e1af8e457 * dir.c (do_load_dir): Add an error message if mc_opendir()
fails.
(do_reload_dir): Likewise.
* screen.c (do_enter_on_file_entry): Add an error message if
do_cd() fails.
2002-12-16 06:42:15 +00:00
Pavel Roskin
446e1ebb08 Add for 4.6.1:
Filters in the editor should operate on the open file.  They don't work
on VFS now.  Don't close and reopen the file.
2002-12-16 05:42:54 +00:00
Pavel Roskin
6743211748 * view.c (do_view_init): Use non-blocking open() followed by
fstat() to avoid race conditions.  Unset O_NONBLOCK flag after
the open().
2002-12-16 03:43:49 +00:00
Pavel Roskin
382930fbf6 * cmd.c (mkdir_cmd): Don't try to create a directory with empty
name.
2002-12-16 02:12:22 +00:00
Pavel Roskin
5c76f171ac * global.h: Add replacement for O_NONBLOCK. 2002-12-16 00:41:06 +00:00
Pavel Roskin
1343933d07 Comment change. 2002-12-15 19:42:04 +00:00
Pavel Roskin
825fd4d1ed Probably fixed already, cannot reproduce:
get_byte() in view.c produces warnings in Valgrind.
2002-12-11 07:40:49 +00:00
Pavel Roskin
42fcf6c927 * find.c (find_file): Skip entries without data when panelizing.
Found by Valgrind.
2002-12-11 07:14:00 +00:00
Pavel Roskin
036689bf51 * eregex.h: Undefine __restrict_arr before redefining to avoid a
warning if it's defined.
2002-12-11 05:33:39 +00:00
Pavel Roskin
926d54ad68 * util.c (load_file_position): Don't free filename. 2002-12-09 16:42:20 +00:00
Pavel Roskin
b10cf9e422 Fix include order. 2002-12-09 05:03:45 +00:00
Pavel Roskin
cffc060544 Move file_mask_dialog() declaration where it belongs. 2002-12-08 18:59:50 +00:00
Pavel Roskin
46958e5630 s/Error trying to/Cannot/ 2002-12-08 09:27:18 +00:00
Pavel Roskin
c8df5d52e9 Done:
Finish work on position saving.
2002-12-08 08:20:21 +00:00
Pavel Roskin
c077626450 (load_file_position): don't free filename. 2002-12-08 07:02:48 +00:00
Pavel Roskin
65f23dcb15 * util.c: Add functions for saving and loading file positions. 2002-12-08 06:51:22 +00:00
Pavel Roskin
0d0ede9ec4 * file.c (is_wildcarded): Move ...
* filegui.c: ... here.  Make static.
2002-12-08 04:23:14 +00:00
Pavel Roskin
9234b4d8ad Remove some unneeded includes. 2002-12-08 04:16:30 +00:00