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
001cb449d0
* configure.in: Enable X11 support by default, use --without-x
...
to disable.
2002-12-23 17:02:04 +00:00
Pavel Roskin
8f97f5dd21
Rename edit/edit_key_translator.c to edit/editkeys.c
2002-12-23 10:25:19 +00:00
Pavel Roskin
554acb2837
* editkeys.c (edit_translate_key): Treat Ctrl-Home and Ctrl-End
...
like Ctrl-PgUp and Ctrl-PgDown respectively.
2002-12-23 10:18:22 +00:00
Pavel Roskin
ab43e6db88
* edit_key_translator.c: Rename to ...
...
* editkeys.c: ... this.
* edit.c (edit_translate_key): Move to editkeys.c.
* Makefile.am: Adjust for the above.
2002-12-23 10:13:35 +00:00
Pavel Roskin
361ec45373
Fix includes.
2002-12-23 10:12:40 +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
d6947e39cf
* edit.c (edit_translate_key): Remove x_state argument, it's now
...
a part of x_keycode.
* editwidget.c (get_key_state): Remove.
2002-12-21 08:46:50 +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
Andrew V. Samoilov
f5dc73aa71
* smbfs.c: Resurrect and use myumask for generated permissions.
2002-12-20 18:16:45 +00:00
Sung-Hyun Nam
7cf658e9cf
updated
2002-12-20 08:57:15 +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
9e24e41f9e
* syntax/perl.syntax: Add separate context for function
...
declarations and definitions, highlight prototypes.
2002-12-19 21:32:34 +00:00
Andrew V. Samoilov
b6aa32d9b2
* extfs/patchfs.in: Fix patch size calculation. Use bytes to
...
count size in bytes, not characters (in multibyte encodings char
can be two or more bytes wide).
2002-12-19 18:20:11 +00:00
Pavel Roskin
1df0641954
* extfs/patchfs.in: Don't rely on tell() - it doesn't always
...
work on pipes. Determine patch size by adding together the line
lengths.
2002-12-19 17:36:58 +00:00
Pavel Roskin
6ee35e2c55
* extfs/patchfs.in: Allow diffs with function names after "@@".
...
Don't consider an empty newline as the end of the diff.
2002-12-19 16:51:04 +00:00
Andrew V. Samoilov
4718c1105d
* editcmd.c (edit_block_process_cmd): Quote filename.
2002-12-19 13:01:34 +00:00
Andrew V. Samoilov
bce2ba99e9
* edit.h (edit_save_mode_t): New enum for file saving mode.
...
* editcmd.c (): Use edit_save_mode_t.
(pipe_mail): Quote to, subject and cc with name_quote().
* edit.c (edit_get_filter): Use quoted filename.
(edit_get_write_filter): Use quoted writename.
(edit_push_action): Use g_realloc().
2002-12-18 20:04:39 +00:00
Andrew V. Samoilov
76a86209d4
* extfs/patchfs.in (openread): Use quoted $archive when opening
...
archives.
(list): Set $archive to quoted $_[0].
2002-12-18 14:31:54 +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
1f05866c5e
* extfs/rpm: Don't check package signatures - it creates a lot
...
of noise on stderr if the signature is missing.
2002-12-17 00:32:38 +00:00
Marco Ciampa
8efa187646
Just a little trimming...
2002-12-16 19:30:59 +00:00
Marco Ciampa
b3fb20944c
Last fuzzy updated...
2002-12-16 19:12:36 +00:00
David Martin
ef8331e3ac
Update.
2002-12-16 13:17:06 +00:00
Pavel Roskin
e0a241f570
* editcmd.c (edit_goto_cmd): Add support for negative line
...
numbers, which are counted from the last line. Use strtol(), so
hex numbers are supported as well.
2002-12-16 07:13:12 +00:00
Pavel Roskin
c820b04bfd
Update.
2002-12-16 06:44:14 +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
1b2f7e7d13
s/Dir cache/Directory cache/
...
"Dir cache" should be in geek.po :-)
2002-12-16 06:04:02 +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
0454cf6eb1
* edit.c: Use edit->stack_disable instead of static variable.
2002-12-16 05:21:42 +00:00
Pavel Roskin
74714227fb
Fix closing the same file twice.
2002-12-16 05:01:02 +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
857565ca21
* edit.c (check_file_access): Use non-blocking open() followed
...
by fstat() to avoid race conditions. Don't ask users to
recompile the editor.
2002-12-16 01:59:49 +00:00
Pavel Roskin
2eb1245290
Comment change.
2002-12-16 01:38:24 +00:00
Pavel Roskin
8148b4973c
* edit.c (edit_reload): Don't initialize edit->macro_i, because
...
edit_init() takes care of it.
* editwidget.c (edit): Likewise.
2002-12-16 01:27:44 +00:00
Pavel Roskin
5c76f171ac
* global.h: Add replacement for O_NONBLOCK.
2002-12-16 00:41:06 +00:00
Pavel Roskin
2048c47dfb
Comment change.
2002-12-15 22:58:33 +00:00
Pavel Roskin
1343933d07
Comment change.
2002-12-15 19:42:04 +00:00
Pavel Roskin
1a4ad10ec8
Comment changes.
2002-12-15 19:38:18 +00:00
Pavel Roskin
aaf569bd48
* edit.h: Don't inclide malloc.h. Use g_malloc() and g_free()
...
instead. Adjust all dependencies.
2002-12-15 18:55:53 +00:00
Pavel Roskin
77bd4c7f55
* edit.c (edit_load_file): Merge edit_open_file(). Disable fast
...
loading on non-local VFS because the file size can be wrong.
(init_dynamic_edit_buffers): Split into edit_init_buffers() and
edit_load_file_fast().
2002-12-15 09:47:25 +00:00
Pavel Roskin
433726e56b
* (edit_init): Move file loading to ...
...
(edit_load_file): ... a separate function.
2002-12-15 08:07:02 +00:00
Pavel Roskin
6716e7ecff
* edit.c (init_dynamic_edit_buffers): Remove unused code to
...
support loading text from buffer.
2002-12-15 06:53:52 +00:00
Pavel Roskin
ceb3e9eb60
Comment fixes.
2002-12-15 02:54:00 +00:00