Commit Graph

1555 Commits

Author SHA1 Message Date
Pavel Roskin
e4f7714ab1 * execute.c: New file with all functions for execution and
toggling panels not specific to subshell.
* execute.h: Corresponding header.
* Makefile.am: Adjust for the above.
2003-06-22 09:17:46 +00:00
Pavel Roskin
a568db4228 * main.c (execute): Eliminate. Fix all dependencies.
(shell_execute): Constify string argument.
2003-06-22 08:12:13 +00:00
Pavel Roskin
5b2bd08768 * configure.in: Remove test for SCO UNIX. Remove all references
to SCO_FLAVOR everywhere.  SCO flavor is rather unsavory now.
2003-06-18 04:47:17 +00:00
Pavel Roskin
944d5c430b * key.c (mc_bindings): Remove. Esc-">" and Esc-"<" are not
always the same as Home and End, at least in mcedit.
(get_key_code): Never ignore Escape outside known sequences.
* screen.c (panel_keymap): Add Esc-">" and Esc-"<".
* tree.c (tree_keymap): Likewise.
* widget.c (input_map): Likewise.
(listbox_key): Likewise.
(check_movement_keys): Likewise.
Reported by Miguel de Icaza <miguel@ximian.com>
2003-06-14 05:19:19 +00:00
Pavel Roskin
bd8919e567 * key.c (correct_key_code): Treat Shift-Backspace as Backspace. 2003-06-09 05:59:00 +00:00
Pavel Roskin
f55e75b70a * util.h: Add new match_type - match_regex.
* ext.c: Use it everywhere.
(regex_command): Don't change easy_patterns - it affects the
panel filters.
Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
2003-06-07 00:37:28 +00:00
Pavel Roskin
bd9c9343eb * view.c (get_byte): Fix off-by-one error. Found by Valgrind. 2003-06-06 23:54:20 +00:00
Pavel Roskin
1fc1bdd0a4 * command.c (command_new): Fix memory leak.
* subshell.c (exit_subshell): Free pty_buffer.
2003-06-06 15:52:13 +00:00
Pavel Roskin
61ac4d5ca1 * dir.c (do_load_dir): Add new argument "path" to avoid the need
to request the current directory.
(do_reload_dir): Likewise.  Adjust all callers.
2003-06-06 00:52:35 +00:00
Pavel Roskin
99e1805194 * screen.c (panel_destroy): Rewind history to the beginning
before freeing it.
* widget.c (input_destroy): Likewise.
* util.c (list_append_unique): Free data when removing duplicate
list entries.
2003-06-05 23:51:15 +00:00
Pavel Roskin
c96b0af3b2 Typo. 2003-06-03 18:55:09 +00:00
Pavel Roskin
d032c68db1 Typos. 2003-06-02 19:26:55 +00:00
Pavel Roskin
341ad1d804 Fix typos and "britainisms". 2003-06-02 18:13:42 +00:00
Pavel Roskin
c09c4f0ffc key.c (init_key): Fix crash if TERM is unset. 2003-05-30 19:56:43 +00:00
Pavel Roskin
5c39926570 * ext.c (regex_check_type): Recognize and skip "/dev/stdin:"
that can apprear in the output of new versions of file.
2003-05-29 04:38:17 +00:00
Pavel Roskin
d3f2f521dc * util.c (unix_error_string): Convert error string from UTF-8 is
glib 2 is used.
2003-05-29 04:33:38 +00:00
Pavel Roskin
70b4cd6ff1 * text.c (default_edition_colors): Change the default for
dhotfocus to be blue on cyan for consistency with dhotnormal.
2003-05-29 04:28:10 +00:00
Pavel Roskin
521dd6bf47 Typo fix. 2003-05-28 23:10:30 +00:00
Pavel Roskin
1866c37dbf * info.c (info_show_info): Cast myfs_stats.avail to double to
fix integer overflow that can cause a negative precent number.
2003-05-27 07:22:04 +00:00
Pavel Roskin
12f4a6665a * main.c (directory_history_add): Don't change the directory
passed as the argument, work on a copy.
2003-05-05 15:30:43 +00:00
Pavel Roskin
6b13fc9926 Add:
Add an argument to regexp_match() to force POSIX regex instead of
changing easy_patterns in ext.c.
2003-04-16 17:49:10 +00:00
Pavel Roskin
0900e8faee * find.c (get_line_at): Strip trailing newline to fix $
matching.
2003-04-16 15:26:29 +00:00
Pavel Roskin
18a078cf5c Add:
Cannot spell check unsaved files in the editor.
2003-03-28 02:45:32 +00:00
Andrew V. Samoilov
904e4022a4 * file.c (copy_file_file): Fix data corruption if mc_write()
does not write n_read bytes at once.
(move_file_file): Eliminate retry_src_lstat label.
2003-03-26 09:59:37 +00:00
Andrew V. Samoilov
6851c22f74 * view.c (get_line_at): Set prev properly for reverse search.
Don't remove final character in the last line without newline.
(search): During regexp search: handle properly '^'
in forward search and '$' in reverse search.
Based on the patch from Adam Byrtek <alpha@debian.org>.
2003-03-24 18:52:02 +00:00
Andrew V. Samoilov
8384e94b0b * cons.handler.c (set_attr) [__FreeBSD__]: Fix compilation.
Reported by Dmitry Alexeyev <dmi_a@qnx.org.ru>.
2003-03-22 17:27:21 +00:00
Pavel Roskin
915136719d * command.c (enter): Check subshell state early and return if
inactive before clearing the command line.
* main.c (force_subshell_execution): Remove magic, unusable,
undocumented command line option "-r".
2003-03-22 05:28:08 +00:00
Pavel Roskin
022fce89cb * subshell.c: Remove dead code (SYNC_PTY_SIDES).
(init_subshell_child): Remove dead code (initfile for TCSH).
(init_subshell): Use ZSH_VERSION environment variable to detect
ZSH.  Use -g option to zsh to hide entries beginning with space
from history.  Add space before ZSH precmd to hide it.
2003-03-22 05:15:46 +00:00
Pavel Roskin
b58ca336d5 Make dynamic loading more urgent, remove libX11 (done already). 2003-03-21 21:26:51 +00:00
Andrew V. Samoilov
9d9dd380fb * view.c (get_line_at): Return unreversed line for backward
search to restore backward regexp search feature.
(icase_search_p): Fix for the above.
Reported by Adam Byrtek <alpha@debian.org>
2003-03-21 16:01:50 +00:00
Pavel Roskin
222058978d Removed entry about navigating VFS by Enter. 2003-03-20 19:57:30 +00:00
Andrew V. Samoilov
387dbac31c * view.c (icase_search_p): Add backward search support.
(search): Likewise.
(block_search): Likewise.
(normal_search): Add "Backwards" button.
(get_line_at): Handle view->direction properly and return
reversed string if backward search required.
2003-03-19 13:39:48 +00:00
Pavel Roskin
038f29a9fd Add:
- Check if the archive was changed for extfs, tar and cpio.  Free the data
associated with the old archive.
- Use Del to remove items from history.
2003-03-16 21:10:31 +00:00
Pavel Roskin
5aa3a8410a Done:
canonicalize_pathname() doesn't strip leading "./"
2003-03-14 16:53:10 +00:00
Pavel Roskin
f6b4657dcb * key.c (xterm_key_defines): Add more sequences for xterm, rxvt
and konsole.
2003-03-14 16:52:33 +00:00
Andrew V. Samoilov
0fbccef3cc * key.c: Use fputs() instead of fprintf().
(func_XOpenDisplay) [HAVE_GMODULE]: Move to init_key_x11().
(get_modifier) [__QNXNTO__]: Use g_snprintf() instead of unsafe sprintf().
2003-03-11 12:23:08 +00:00
Pavel Roskin
867704615b * key.c (correct_key_code): Convert unrecognized 0177, Ctrl-h
and Ctrl-d into Delete and Backspace.  Remove all references to
those keys in other files.
2003-03-10 20:27:54 +00:00
Pavel Roskin
44aac01193 * key.c (get_modifier) [__QNXNTO__]: Remove incorrect check for
the existance of libph.so.1.
2003-03-10 14:38:12 +00:00
Pavel Roskin
1de4ce4890 * key.c (get_modifier): Add support for QNX Photon pterm. 2003-03-10 08:47:37 +00:00
Pavel Roskin
cf432c1d8a * utilunix.c (canonicalize_pathname): Clean rewrite from
scratch.  The old implementation had memory problems with "/.."
and didn't actually strip the leading "./" from path.  Remove
support for obsolete Qnet paths.
2003-03-10 06:52:57 +00:00
Pavel Roskin
61317cb730 Add:
Use KDGKBENT ioctl on Linux console to find the mapping.
2003-03-07 20:47:56 +00:00
Pavel Roskin
2915491aa0 Call check_sid() only if possible. 2003-03-05 20:23:50 +00:00
Pavel Roskin
861deaf09d * subshell.c (init_subshell_child): Set environment variable
MC_SID to the session number of the subshell.
(check_sid): Check that we are not running mc already in the
same session.
* main.c (main): Don't run do_nc() if shutdown was requested.
2003-03-05 20:18:11 +00:00
Andrew V. Samoilov
8e810942f8 * cons.handler.c (set_attr) [__FreeBSD__]: Eliminate cmd array. 2003-03-05 19:38:50 +00:00
Andrew V. Samoilov
e45c155b58 * cons.handler.c (set_attr) [__FreeBSD__]: Eliminate cmd array. 2003-03-05 19:33:10 +00:00
Pavel Roskin
818b4956ea * cons.handler.c (console_init) [__FreeBSD__]: Fix the amount of
allocated memory.
(console_save) [__FreeBSD__]: Doen't exit on error, just return.
2003-03-05 17:52:58 +00:00
Pavel Roskin
7092f9e1e2 * cons.handler.c (show_console_contents_freebsd): Rewrite
to use screen library (S-Lang or ncurses).  Direct output is
unreliable when the screen library is active.
2003-03-05 09:29:31 +00:00
Pavel Roskin
b9081640b0 * profile.c (load): Fix reading keys immediately after comments. 2003-03-03 07:59:11 +00:00
Pavel Roskin
ff82223a35 Remove references to the archaic "linux" preprocessor definition.
Only __linux__ should be used.
2003-02-27 05:09:35 +00:00
Pavel Roskin
6b986e7547 Don't include main.h - it's not needed. 2003-02-27 05:01:40 +00:00