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

1421 Коммитов

Автор SHA1 Сообщение Дата
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
Pavel Roskin
b246f3c7ea s/Could not/Cannot/ 2002-12-08 01:12:18 +00:00
Pavel Roskin
63a3aaea7d Remove:
Redirect stderr from the extfs list operation.
Let's hope it's really fixed now.
2002-12-05 17:06:08 +00:00
Pavel Roskin
5802c9d115 Remove:
acs_map[] from ncurses is const on Cygwin - test and disable "-a".
Sorry, I was too quick to add it.
2002-12-05 08:52:36 +00:00
Pavel Roskin
49d5227104 Add:
acs_map[] from ncurses is const on Cygwin - test and disable "-a".
Redirect stderr from the extfs list operation.
2002-12-05 08:29:23 +00:00
Pavel Roskin
8f567886af Done:
Don't allow stdout and stderr from extfs scripts pollute the screen.
2002-12-01 20:37:08 +00:00
Pavel Roskin
71c43fd0f2 Finish work on position saving. 2002-12-01 08:46:19 +00:00
Pavel Roskin
1573a9581f * cmd.c (do_edit_at_line): Set line to 0 to allow the editor to
decide if the user cares about the initial line or not.
* main.c: Set edit_one_file_start_line to 0 initially.
2002-12-01 08:18:17 +00:00
Pavel Roskin
dc52e8e66a * setup.c: Add option_save_position to the options table. 2002-11-30 00:37:14 +00:00
Pavel Roskin
c3f5696cca * tree.c: Make struct WTree opaque. Remove "done" flag - it's
broken by design.
(tree_selected_name): New function, return name of the currently
selected entry.  Use it where WTree is opaque.
* boxes.c (tree_callback): Don't check for the "done" flag - it
causes closing the dialog on any key after mouse selection.
2002-11-29 04:55:06 +00:00
Pavel Roskin
e0e20526b2 * user.h: Don't include edit/edit-widget.h.
* user.c: Include edit/edit-widget.h and edit/edit.h.
2002-11-29 03:03:53 +00:00
Pavel Roskin
935b5f8bc7 * slint.c (getch): Return -1, not SLANG_GETKEY_ERROR, otherwise
get_key_code() crashes when calling isalpha().
2002-11-28 21:35:49 +00:00
Pavel Roskin
8ba045461d * color.c (mc_init_pair) [HAVE_SLANG]: Pass "default", not NULL
to SLtt_set_color() - it fixes transparency with the latest
versions of S-Lang.  Treat foreground like background.
2002-11-28 18:57:05 +00:00
Pavel Roskin
505bed0ac9 Add for 4.6.1:
Find file dialog should not be closed if the regex is invalid.  Make it
possible to search for string verbatim.
2002-11-20 17:01:10 +00:00
Pavel Roskin
c0cd0ff9ec * main.c: Eliminate finish_program variable - mc can now exit
immediately.
2002-11-20 15:54:33 +00:00
Pavel Roskin
a5c1f136d5 Add:
Crash in isalpha() in key.c is c=0xFFFF.
2002-11-18 21:39:54 +00:00
Pavel Roskin
1544c641e2 * screen.c (do_select): Mark panel as dirty. 2002-11-17 07:14:56 +00:00
Pavel Roskin
7cbd1dd863 * boxes.c (init_disp_bits_box): Make static. 2002-11-17 06:45:24 +00:00
Pavel Roskin
f2331eeafc Remove:
Restore shadow password support in mcserv.
(won't be done)
2002-11-17 01:25:02 +00:00
Pavel Roskin
7b4387975b * main.c (main): Don't call subshell_get_console_attributes() if
the subshell is disabled from the command line.
2002-11-15 21:41:57 +00:00
Pavel Roskin
8a3bce3a54 Fix warning with -Wundef. 2002-11-15 06:55:08 +00:00
Pavel Roskin
5cb2ef30f3 Fix duplicate declarations. 2002-11-15 06:38:55 +00:00