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

1542 Коммитов

Автор SHA1 Сообщение Дата
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
Pavel Roskin
e65f20852b * cons.handler.c: Put checks for rxvt extensions in one place.
Simplify FreeBSD code.
2003-02-27 04:57:58 +00:00
Pavel Roskin
c799424167 Fix for the previous patch to avoid freeing bogus pointers. 2003-02-26 19:25:13 +00:00
Pavel Roskin
a8a0f0c17a * cons.handler.c: Add implementation for FreeBSD 4.x and 5.x. 2003-02-26 19:14:52 +00:00
Pavel Roskin
c6311c4ca5 * view.c (load_view_file): Make sure view->s.st_size is not
truncated when passed to g_malloc().
Reported by Philipp Thomas <pthomas@suse.de>
2003-02-26 18:06:27 +00:00
Pavel Roskin
f5d76afe37 * key.c (get_modifier): Add support for QNX Neutrino console. 2003-02-23 05:36:49 +00:00
Pavel Roskin
66b2b1381c * key.c (init_key_x11): Don't try to use X11 if DISPLAY is not
set in the environment.
2003-02-23 05:23:04 +00:00
Pavel Roskin
92da7e9dc0 * key.c: Add support for dynamic loading of libX11. 2003-02-23 05:05:49 +00:00
Pavel Roskin
0f70a1c7ea * utilunix.c (destroy_groups): Revert last change, it doesn't
work with glib-1.2.x.
2003-02-21 16:32:32 +00:00
Pavel Roskin
31ba6af202 Add:
Ctrl-q Ctrl-m in input dialog should enter \r, not a newline.
Interpret C literals in regular expressions entered by the user, e.g. \r
and \0x0D.
2003-02-20 21:07:24 +00:00
Andrew V. Samoilov
1a3f1416a8 * option.c (init_configure): Use OTHER_OPTIONS consistently.
By Mike Smithson <dooligan@intergate.ca>.
2003-02-19 10:50:24 +00:00
Pavel Roskin
30aeb24388 * util.c (list_append_unique): Free removed links.
* utilunix.c (destroy_groups): Use g_tree_foreach() instead of
obsolete g_tree_traverse().
2003-02-19 00:42:04 +00:00
Pavel Roskin
cb1438913a * util.c (list_append_unique): Traverse the list backwards.
Otherwise the list was lost when the current link was removed.
2003-02-18 23:21:54 +00:00
Pavel Roskin
a2ef2fe88b * widget.c (history_get): Set the history to the last item.
Reported by Adam Byrtek <alpha@debian.org>
2003-02-18 21:43:46 +00:00