Pavel Roskin
10f65ac83d
* dlg.h (struct Widget): Remove tkname field.
...
(init_widget): Remove tkname argument.
* widget.h (listbox_new): Likewise.
Adjust all dependencies.
2003-08-31 23:29:49 +00:00
Pavel Roskin
8b3b8147d7
* cmd.c (edit_symlink_cmd): Fix possible off-by-one after
...
readlink().
* file.c (make_symlink): Likewise.
* main.c (copy_readlink): Likewise.
* screen.c (display_mini_info): Likewise.
(chdir_to_readlink): Likewise.
* util.c (resolve_symlinks): Likewise.
2003-08-29 22:45:04 +00:00
Pavel Roskin
65b52a3c89
Add:
...
Alt-O should optionally show the current directory and move cursor down
(as in older versions). Old functionality on files (go to "..") is not
needed.
2003-08-18 04:58:23 +00:00
Pavel Roskin
3f4d7934b3
* cmd.c (delete_cmd_local): New function. Remove file under the
...
cursor, regardless of marks.
* screen.c (panel_keymap): Bind it to F18.
2003-08-18 04:45:54 +00:00
Pavel Roskin
df6365e737
* file.c (panel_operate_generate_prompt): Remove source
...
calculation, it doesn't belong here.
(panel_operate): Change arguments: drop ask_user and thedefault,
introduce force_single. force_single changes default to the
current file and ignores selection. Adjust all dependencies.
2003-08-18 04:35:28 +00:00
Pavel Roskin
4dd13a09ba
* dir.h (file_entry): Rename "buf" to "st". Adjust all
...
dependencies.
2003-08-18 00:47:43 +00:00
Pavel Roskin
ef2c07b7c8
* main.c: Rename PanelMenu to LeftMenu. Don't assume that
...
LeftMenu and RightMenu are identical.
From Pavel Tsekov <ptsekov@gmx.net>
2003-08-01 20:00:28 +00:00
Pavel Roskin
90b7cbf2ea
Done:
...
Changing directory while in the editor shouldn't affect the path where
the editor saves its files.
2003-07-31 16:38:39 +00:00
Pavel Roskin
6867850154
Add:
...
Make the internal editor reentrant. Add "edit menu file" to the editor
menu.
2003-07-31 16:27:44 +00:00
Pavel Roskin
c7456a4e5d
Images on VFS - better description.
2003-07-28 18:34:35 +00:00
Pavel Roskin
a1ce20517c
* main.c: Make more variables static.
2003-07-28 16:11:44 +00:00
Pavel Roskin
d388773779
* key.c (xterm_key_defines): Add more sequences for xterm-179 by
...
Thomas E. Dickey.
2003-07-23 05:44:25 +00:00
Pavel Roskin
c72a1ea44c
Get rid of all references to NATIVE_WIN32.
2003-07-23 03:22:32 +00:00
Pavel Roskin
17a04526cf
* subshell.c (pty_open_master) [HAVE_GRANTPT]: Prefer
...
posix_openpt() over GNU-specific getpt(). Needed for FreeBSD
5.x. Original patch by Max Khon <fjoe@FreeBSD.org>
2003-07-21 23:33:34 +00:00
Pavel Roskin
0ec650da9a
* screen.c (panel_key): Redisplay ministatus if the searching
...
was turned off. Reported by gotar@poczta.onet.pl
2003-07-21 04:56:56 +00:00
Pavel Roskin
4229e4fb3d
Fix description of the last commit.
2003-07-10 16:47:18 +00:00
Pavel Roskin
0564dc68ea
Fixed:
...
Locks for compressed files are not removed.
2003-07-09 00:21:46 +00:00
Pavel Roskin
0ba153274d
Update for fixed issues.
2003-07-08 22:48:07 +00:00
Pavel Roskin
40d911f728
* ext.c (regex_check_type): Handle case when there are no tabs
...
or spaces after the colon.
2003-07-08 22:24:46 +00:00
Pavel Roskin
452de6619d
* ext.c (regex_check_type): Set content_shift to skip the
...
filename.
2003-07-02 16:42:36 +00:00
Pavel Roskin
43bbd6d299
* hotlist.c: Add buttons "Refresh" and "Free VFSs now" to Active
...
VFS dialog.
(hotlist_button_callback): Handle the buttons.
* main.c: Remove the 'Free VFS now' menu item.
2003-06-29 23:44:39 +00:00
Pavel Roskin
7e3f8b9d87
* ext.c (regex_check_type): Fix previous change.
2003-06-25 17:42:38 +00:00
Pavel Roskin
e31a950387
* ext.c (regex_check_type): Strip tab(s) after "filename:" in
...
file output.
2003-06-25 06:32:46 +00:00
Pavel Roskin
6f5bb55e2b
* execute.c (do_execute): Make static. Print end of line after
...
"Press any key to continue" and user's keystroke, but before
restoring the panels. Eliminate last_paused variable. Don't
print fake prompt if there is no command.
2003-06-22 10:15:04 +00:00
Pavel Roskin
c36bf430bf
* text.c: Eliminate. Move colors to color.c and clr_scr() to
...
layout.c.
* main.c (restore_console): Eliminate, use handle_console().
* Makefile.am: Remove text.c.
2003-06-22 09:32:52 +00:00
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
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
Pavel Roskin
fc0b31c73f
More entries. Better descriptions.
2003-02-18 08:22:46 +00:00
Pavel Roskin
9cf0d2c60f
* main.c (do_panel_cd): Record directory history for the panel
...
that changes the directory, not for the current panel.
2003-02-18 06:43:04 +00:00
Pavel Roskin
35895e3c10
Done:
...
Remove duplicate history entries.
2003-02-18 06:30:27 +00:00
Pavel Roskin
bd19828876
* widget.c (history_get): Use list_append_unique() for backward
...
compatibility.
2003-02-18 06:29:43 +00:00
Pavel Roskin
f95d276250
* main.c (directory_history_list): Allow history command even
...
with just one entry - it's more intuitive.
2003-02-18 06:19:11 +00:00
Pavel Roskin
738e33006b
* util.c (list_append_unique): New function - add text to GList
...
and remove duplicates.
* main.c (directory_history_add): Use list_append_unique().
* widget.c (push_history): Likewise.
2003-02-18 06:12:57 +00:00
Pavel Roskin
89e5cc319e
* panel.h: Convert directory history to GList.
...
* widget.h: Convert input history to GList.
Adjust all dependencies.
2003-02-18 05:25:45 +00:00
Pavel Roskin
200dce3828
Add:
...
Use separate colors for hotkeys in error dialogs.
2003-02-12 05:03:15 +00:00
Pavel Roskin
fd051ca33e
* cmd.c (edit_cmd_new): Call editor with NULL argiment, not with
...
an empty string. nvi won't save the file if invoked with an
empty argument.
(execute_with_vfs_arg): Don't call vfs_file_is_local() on NULL.
Reported by Adam Byrtek <alpha@debian.org>
2003-02-11 19:11:36 +00:00
Pavel Roskin
881ee01385
Comment fixes.
2003-02-11 16:57:45 +00:00
Pavel Roskin
fc5b14503b
Remove includes needed for my_system(), which is in utilunix.c.
2003-02-11 16:46:50 +00:00
Pavel Roskin
4ca9a308aa
Add:
...
Allow calling directory hotlist from Copy, Move and Find File dialogs.
2003-02-11 00:39:53 +00:00
Pavel Roskin
34c12e65a5
Add improved navigation on VFS with non-empty command line.
2003-02-10 23:09:41 +00:00
Pavel Roskin
0631946e1d
Add two history-related items for 4.6.1.
2003-02-10 21:47:41 +00:00
Pavel Roskin
56aa86a88d
Update plans for 4.6.1.
2003-02-07 05:58:15 +00:00
Pavel Roskin
0f865bcf8f
* cmd.c (get_random_hint): Add "force" argument to ignore
...
timeout. Adjust all dependencies.
* main.c (load_hint): Likewise.
* layout.c (setup_panels): Force updating the hint bar.
Original patch by Adam Byrtek <alpha@debian.org>
2003-02-05 08:37:21 +00:00
Pavel Roskin
482e675156
* slint.c (getch): If there is EOF on the input, exit
...
immediately, don't use quiet_quit_cmd().
Reported by Steven P. Ulrick <spu@faith4miracle.org>
2003-02-03 18:00:34 +00:00
Pavel Roskin
2edd447426
* util.c (name_quote): Don't quote ':', '~' and '@'. Quote '#'
...
and '~' only if it's the first character.
2003-01-28 22:52:04 +00:00
Pavel Roskin
5cecc135e1
* info.c (info_show_info): Cast nlink_t to int to avoid a
...
warning if nlink_t is short.
* screen.c (string_file_nlinks): Likewise.
2003-01-28 21:15:59 +00:00
Pavel Roskin
781dae3544
* key.c (is_idle): Correct maximal file descriptor and return
...
value.
2003-01-27 22:37:32 +00:00
Andrew V. Samoilov
b25dd0a948
* util.c (get_compression_type): Cast magic to char * to
...
fix compilation on AIX.
2003-01-27 18:19:34 +00:00
Andrew V. Samoilov
14a6ef141c
* util.h (app_text): Remove declaration - it became static.
2003-01-27 18:03:04 +00:00
Andrew V. Samoilov
778845fc48
* mountlist.c (read_filesystem_list) [MOUNTED_GETMNTENT1]:
...
Check for MOUNTED is defined to fix compilation on AIX.
Reported by Alexander Varakin <avarakin00@hotmail.com>.
2003-01-27 17:51:53 +00:00
Pavel Roskin
a9440f0320
* main.c (update_xterm_title_path): Use is_printable().
2003-01-27 17:16:11 +00:00
Pavel Roskin
8be1c7add5
* slint.c (slang_reset_softkeys): Cast arguments from size_t to
...
int to avoid a warning on 64-bit systems.
2003-01-24 21:36:29 +00:00
Pavel Roskin
8e7ad454d6
* subshell.c (resize_tty) [!TIOCSWINSZ]: Warning fix.
2003-01-24 21:00:49 +00:00
Andrew V. Samoilov
6bd6b1deb0
* setup.c (load_keys_from_section): Simplify.
2003-01-23 14:26:22 +00:00
Pavel Roskin
90243a202f
* slint.c (slang_init): Limit screen size to 255x255 because of
...
S-Lang limitations.
Reported by Tero Peippola <top@ees2.oulu.fi>
2003-01-23 14:19:55 +00:00
Pavel Roskin
0105a5a3d2
* cmd.c (view_other_cmd): Update path in the xterm title after
...
command execution.
* main.c (do_execute): Likewise.
2003-01-23 02:41:49 +00:00
Pavel Roskin
d233a13bcd
Done: -lcurses
...
Added: "time" keyword.
2003-01-22 07:33:09 +00:00
Pavel Roskin
73c700af4b
* util.c (size_trunc): Remove "b" from the output - it's
...
redundant and wrong - the abbreviation for byte is "B".
Reported by Werner Lemberg <wl@gnu.org>
2003-01-22 07:07:05 +00:00
Pavel Roskin
c89876b805
Mode things to do before 4.6.0.
2003-01-21 18:08:09 +00:00
Pavel Roskin
51f61ccbd0
* screen.c (string_file_type): Check for "regularity" before
...
checking for executable bit.
(file_compute_color): Likewise.
2003-01-21 00:40:45 +00:00
Pavel Roskin
54a2e8283d
Wrong function listed.
2003-01-21 00:33:03 +00:00
Pavel Roskin
2665057b7c
* dir.c (handle_dirent): Fix cleaning the stat buffer if
...
mc_lstat() fails. Leave buf1->st_mode to be 0, so that the
entry is marked as a "non-regular file of unknown kind".
* screen.c (do_enter_on_file_entry): Try to change directory
when pressing Enter on a non-stat()able file.
2003-01-21 00:31:43 +00:00
Pavel Roskin
7532ed2827
* screen.c (string_file_size_brief): Represent non-regular files
...
of unknown kind by '?'.
(file_compute_color): Use for them the same color as for stale
links.
2003-01-21 00:12:07 +00:00
Pavel Roskin
5f63841598
* main.c: Change default value of full_eight_bits to 0 - it's
...
reported to be broken on many terminals.
2003-01-20 23:45:13 +00:00
Pavel Roskin
f33d076970
* man2hlp.c (main): Initialize cnode->heading_level.
...
Bug report by Tribhuvan <loka@rcn.com>
2003-01-20 23:21:57 +00:00
Pavel Roskin
8f02c8ee72
* dir.c (sort_size): Avoid any arithmetic except comparison on
...
file sizes - they may not fit "int" that the function returns.
Original patch by Bulia Byak <bulia@dr.com>
2003-01-20 17:06:24 +00:00
Andrew V. Samoilov
e015c70198
* profile.c (load): Handle corrupted section header.
...
Reported by skol@sbox.tugraz.at .
(GetPrivateProfileInt): Make intBuf and buf auto variables.
2003-01-20 14:33:02 +00:00
Pavel Roskin
6bf1782b77
* screen.c (do_search): Use case-insensitive search if and only
...
if the sort order is case-insensitive.
Suggested by Bulia Byak <bulia@dr.com>
2003-01-20 14:18:29 +00:00
Pavel Roskin
02794a5cce
* dir.c (do_load_dir): Remove dotdot_found - handle_dirent()
...
doesn't process ".." now. Don't add ".." to the "/" directory.
(do_reload_dir): Likewise.
Suggested by Bulia Byak <bulia@dr.com>
2003-01-19 12:37:27 +00:00
Pavel Roskin
abad291b5e
* dir.c (handle_dirent): If mc_lstat() fails, assume that the
...
entry is a directory. This is useful for QNX Neutrino.
2003-01-19 12:07:43 +00:00
Andrew V. Samoilov
2fdd86e31d
* man2hlp.c (fclose_check): Call ferror() and exit on file error.
2003-01-16 18:54:47 +00:00
Andrew V. Samoilov
1daab23a66
* man2hlp.c (main): Use fgets() return value in while loop instead of
...
feof() because end-of-file indicator can be false on error.
2003-01-15 16:27:17 +00:00
Andrew V. Samoilov
49b5356345
* man2hlp.c (handle_command): Fix possible buffer overflow.
...
(handle_link): Likewise.
2003-01-15 14:20:01 +00:00
Andrew V. Samoilov
483d470073
* man2hlp.c (handle_command): Fix possible buffer overflow.
...
(handle_link): Likewise.
2003-01-15 11:24:56 +00:00
Pavel Roskin
f2fb0f85e2
Remove dead code for setting the titlebar.
2002-12-27 23:23:34 +00:00
Pavel Roskin
a47c40eaac
* layout.c (setup_panels): Revert unnecessary part of the
...
previous patch. Call load_hint regardless of message_visible.
Reported by Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
2002-12-27 17:52:24 +00:00
Pavel Roskin
3bad66bae8
* key.c (correct_key_code): Don't call get_modifier() for normal
...
characters - they only should get modifiers from sequences
tables. This fixes entering characters with AltGr.
Reported by David Martn <dmartina@excite.com>
2002-12-27 16:27:44 +00:00
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
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
Pavel Roskin
f3afd054e9
Add:
...
Restore shadow password support in mcserv.
get_byte() in view.c produces warnings in Valgrind.
2002-11-15 05:29:53 +00:00
Pavel Roskin
f8267eb2a0
* myslang.h: Define getyx() macro.
...
* layout.c (print_vfs_message): Preserve cursor position.
2002-11-15 01:35:12 +00:00
Pavel Roskin
bb71be884a
Fix "edit" entries in the "Command" menu.
2002-11-14 23:00:50 +00:00
Pavel Roskin
d508d0ef0c
* view.h: Make struct WView opaque, move non-interface parts ...
...
* view.c: ... here.
* layout.c: Use struct WView, not typedef WView.
2002-11-14 21:18:28 +00:00
Pavel Roskin
c9194603a4
* cmd.c: Clean up includes, don't rely on edit.h.
2002-11-14 19:56:02 +00:00
Pavel Roskin
996886fcfd
Update includes.
2002-11-14 17:08:56 +00:00
Pavel Roskin
5aeb6c2422
* dialog.c (struct Refresh): Make opaque.
...
* dialog.h: Move all stuff unrelated to dialog.c ...
* wtools.h: ... here. Adjust all users.
2002-11-14 07:25:18 +00:00
Pavel Roskin
e5ca7e2124
* dialog.c (refresh_list): Make static.
...
* dialog.h: Add typedef refresh_fn.
2002-11-14 06:41:04 +00:00
Pavel Roskin
d4ddbe5148
* cmd.c (menu_edit_cmd): Make static, provide separate functions
...
without arguments to access it.
* menu.h: Make callfn function without arguments - we are not
using any arguments now.
2002-11-14 06:30:16 +00:00
Pavel Roskin
895c9468c3
* man2hlp.c (persistent_fread): Return error for len <= 0.
...
(persistent_fwrite): Likewise.
(main): Check the result of the second ftell().
2002-11-13 17:38:33 +00:00
Pavel Roskin
4af124c573
Include edit.h.
2002-11-13 09:30:57 +00:00
Pavel Roskin
e1dc782744
* cmd.h: Fully exclude WPanel from public interfaces of cmd.c.
...
* cmd.c: All commands operate on current panels.
(get_a_panel): Remove.
* screen.c: Change to use new functions.
2002-11-13 09:27:42 +00:00
Pavel Roskin
85075934f1
* main.h: Don't check if panel.h was included. Use forward
...
declaration of WPanel, change prototypes to use struct WPanel.
(midnight_callback): Make static.
2002-11-13 08:32:49 +00:00
Pavel Roskin
1b017c668f
* cmd.c (do_view_cmd): Don't take WPanel argument - always use
...
the current panel.
(view_cmd): Likewise.
(view_file_cmd): Likewise.
(view_simple_cmd): Likewise.
(filtered_view_cmd): Likewise.
(filtered_view_cmd_cpanel): Remove.
(view_panel_cmd): Likewise.
2002-11-13 08:21:45 +00:00
Pavel Roskin
b3ae19dd7d
* chmod.c (init_chmod): Make static.
...
* help.c (quit_cmd): Rename to help_quit_cmd().
(show): Rename to help_show().
* main.c (quit_cmd): Make static. Return void, not int.
(sort_cmd): Make static.
2002-11-13 04:01:04 +00:00
Pavel Roskin
66f451aac7
* dlg.c (send_message_to): Remove, use send_message() instead.
...
(send_message): Make inline, remove Dlg_head argument. Change
all callers.
2002-11-13 02:56:40 +00:00
Pavel Roskin
31f491b01e
* dlg.h: Remove Dlg_head argument from callback_fn - it's
...
excessive and can be trivially derived from the widget.
(default_proc): Remove Dlg_head argument. Change all callers.
* widget.c (listbox_draw): Remove Dlg_head argument.
2002-11-13 02:27:00 +00:00
Pavel Roskin
e3bc0b2b86
* dlg.h: Define dlg_cb_fn - dialog callback function. Improve
...
typedefs for callbacks and use them everywhere. Clean up some
unused defines.
* dlg.c: Adjust declarations for match.
2002-11-13 01:30:37 +00:00
Pavel Roskin
11913b36a2
* wtools.h: Eliminate the_widget filed in QuickWidget.
...
* wtools.c (quick_callback): Allocate widget table dynamically.
2002-11-13 00:20:15 +00:00
Pavel Roskin
eb53b3e975
* dlg.c (widget_redraw): Remove.
...
* widget.c (find_buttonbar): Use find_widget_type(). Make
global.
(define_label): Remove paneletc argument. Change all callers.
(define_label_data): Likewise.
(redraw_labels): Likewise. Use find_buttonbar().
* view.c (view_adjust_size): Use find_buttonbar().
2002-11-12 23:33:15 +00:00
Pavel Roskin
b0481b41bf
* menu.h: Remove "*" from the definition of the type "Menu"
...
for consistency with other types. Change all dependencies.
(menubar_event): Make static.
2002-11-12 21:01:50 +00:00
Pavel Roskin
97af01a20f
Remove control character from an error message in help.c - it is not
...
required now.
2002-11-12 17:46:54 +00:00
Pavel Roskin
834abd3e24
Reuse existing message from file.c.
2002-11-12 17:22:02 +00:00
Andrew V. Samoilov
050b141018
Fix last entry
2002-11-12 16:24:18 +00:00
Andrew V. Samoilov
74b5eb3ac7
* view.c (get_line_at): Use g_strreverse() instead of
...
reverse_string().
* util.c (reverse_string): Remove.
(decompress_extension): Return const char *.
(strip_home_and_password): Make dir const.
* util.c (reverse_string): Fix declarations.
2002-11-12 11:20:08 +00:00
Pavel Roskin
af883aaecf
Fixes in English messages.
2002-11-11 17:27:13 +00:00
Pavel Roskin
bf107a7860
Add:
...
Check and report errors from opendir().
2002-11-11 17:01:26 +00:00
Pavel Roskin
5c0691349c
* charsets.c (convert_to_display): Don't crash on empty read
...
only strings.
(convert_from_input): Likewise.
Reported by David Martin <dmartina@excite.com>
2002-11-11 14:48:37 +00:00
Pavel Roskin
39f877f0bb
* screen.c (select_item): Don't show the file selection if the
...
panel is inactive.
(chdir_other_panel): Select the same file on the other panel.
2002-11-11 09:12:53 +00:00
Pavel Roskin
ba466b74d6
* file.c (panel_operate): Warning fix.
...
* cmd.c (compare_dirs_cmd): Likewise.
* man2hlp.c: Warning fixes. size_t can be unsigned.
2002-11-11 08:25:29 +00:00
Pavel Roskin
2538dbfdd3
* file.c (panel_get_file): Make static.
...
* filegui.h: Eliminate use of WANT_WIDGETS.
* setup.h: Likewise.
* menu.h: Declare struct WMenu.
* main.h: Don't include menu.h, use forward declaration.
2002-11-11 07:35:08 +00:00
Pavel Roskin
e0194b11a0
* dlg.h: Move movefn definition ...
...
* win.h: ... where it's used. Remove unused definitions.
* win.c: Remove unused code.
* key.h: Include mouse.h, don't rely on others doing it.
* widget.h: Include dlg.h. Remove Tk-only fields.
* widget.c: Remove Tk-only fields.
2002-11-11 07:12:03 +00:00
Pavel Roskin
e917b70e56
* panel.h: Simplify interdependencies between headers. Use
...
forward declarations for structures.
* widget.h: Declare struct WListbox.
* wtools.h: Use forward declaration for struct WListbox to avoid
dependency on widget.h.
2002-11-11 06:23:59 +00:00
Pavel Roskin
86436e886a
* panel.h: Remove all unused definitions. Make format_e an
...
opaque structure by moving it ...
* screen.c: ... here.
2002-11-11 05:55:22 +00:00
Pavel Roskin
e9460185bf
* screen.c (display_mini_info): Make static.
...
(the_info_panel): Remove.
2002-11-11 04:52:23 +00:00
Pavel Roskin
dc9869db9e
* screen.c (Xtry_to_select): Make static, rename to
...
do_try_to_select().
2002-11-11 04:07:40 +00:00
Pavel Roskin
5d8071ceb4
* screen.c (chdir_other_panel): Change behavior of Alt-O -
...
change the other panel to the current directory, put it to the
listing mode if needed. Based on a patch from PLD Linux
Distribution.
2002-11-11 00:44:27 +00:00
Pavel Roskin
df9b2f4c5c
* myslang.h: Don't define ERR - it conflicts with sys/ucontext.h
...
in glibc 2.1.3.
* key.c: Use -1, not ERR.
2002-11-06 06:08:11 +00:00
Andrew V. Samoilov
c84ff58e4e
(configure_vfs): Simplify #if logic.
...
(cd_dialog): Remove unneeded code.
(vfs_smb_get_authinfo): Use enum instead of static variables.
2002-11-04 12:33:15 +00:00
Pavel Roskin
8bd8b04f57
Remove:
...
Consider applying a patch from PLD to make M-o propagate the current
directory to the other panel.
2002-11-03 09:02:09 +00:00
Pavel Roskin
f7961b614e
* boxes.c (configure_vfs): Ask whether passive connections
...
should be used.
2002-11-01 20:40:19 +00:00
Pavel Roskin
db31e4b3c4
* main.c (main): Use O_TRUNC when opening the file to write the
...
last working directory. Fix segmentation fault when exiting
while on VFS.
* util.c (mc_mkstemps): Use O_TRUNC to open temporary files.
2002-11-01 20:24:07 +00:00
Andrew V. Samoilov
1c8f1cb327
* view.c (normal_search) [HAVE_CHARSET]: Fix segmentation fault
...
on first search. Writting to readonly "" is not good idea.
2002-10-31 11:55:35 +00:00
Andrew V. Samoilov
25739803a8
* view.c (init_growing_view): Mark message for translation.
...
(normal_search) [HAVE_CHARSET]: Convert saved search string to
original codeset if input_dialog() returns empty string.
2002-10-31 11:15:07 +00:00
Pavel Roskin
5d46a2d6b7
Done:
...
reimplement "-P" in a safer way (temp file instead of stdout) - possibly
security issues.
2002-10-31 06:54:58 +00:00
Pavel Roskin
af687f67c5
* main.c (probably_finish_program): Eliminate.
...
(handle_args): Use exit code 1 only for errors, 0 for legitimate
options such as "--help".
2002-10-31 06:52:33 +00:00
Pavel Roskin
a04dd8754e
* main.c: Option -P takes an argument (output filename) now.
...
(main): Output the last directory to the specified file. Don't
output "." is this information is unavailable.
2002-10-31 04:31:52 +00:00
Pavel Roskin
2c3b0c50b6
* subshell.c (subshell_name_quote): Don't quote numbers and
...
letters if possible and safe.
2002-10-31 04:01:19 +00:00
Pavel Roskin
2d3c157e52
* charset.h: Provide new inline functions convert_to_display_c()
...
and convert_from_input_c().
* view.c: Include charset.h unconditionally, use new conversion
functions that don't require ifdefs.
2002-10-30 23:42:21 +00:00
Pavel Roskin
4d20330abc
Reformat.
2002-10-30 23:16:16 +00:00
Pavel Roskin
517243efa0
* charset.h [!HAVE_CHARSET]: Provide dummy macros for
...
convert_to_display and convert_from_input. Eliminate uchar
definition, use unsigned char, adjust dependencies.
* charsets.c (convert_to_display): Tolerate NULL argument.
(convert_from_input): Likewise.
2002-10-30 23:14:26 +00:00
Pavel Roskin
a305ec68f9
Reformat.
2002-10-30 22:48:59 +00:00
Pavel Roskin
3ee1c3b3f6
* ext.c (exec_extension): Don't create self-destructing scripts
...
for the viewer - remove those scripts manually after calling
view(). This fixes the problem with double F8 in the viewer on
parsed files.
Reported by David Martin <dmartina@excite.com>
2002-10-30 21:38:33 +00:00
Pavel Roskin
0ff23cc6a3
* ext.c (exec_extension): Don't rely on working #! - explicitly
...
run /bin/sh on the temporary script.
2002-10-30 21:22:42 +00:00
Pavel Roskin
04f460d565
* mouse.h: Use definitions for GPM_B_DOWN and GPM_B_UP
...
compatible with gpm-1.20.
Reported by by David Martin <dmartina@excite.com>
2002-10-30 20:52:59 +00:00
Pavel Roskin
38e3189d0a
* lib/mc.ext.in: Rename TROFFASCII to MAN_FLAGS.
...
* configure.in: Likewise. Add "-c" (disable ANSI color) to
MAN_FLAGS if supported.
2002-10-30 02:37:48 +00:00
Pavel Roskin
85f55fe291
* panel.h: Use spaces, not commas, in the format - they are more
...
readable and easier to document.
* screen.c (panel_format): Likewise.
(mini_status_format): Likewise.
2002-10-30 00:56:08 +00:00
Pavel Roskin
6efcfdbc68
Don't use decorative spaces in any new translatable strings.
2002-10-29 22:13:17 +00:00
Pavel Roskin
afb2c8abe5
Done:
...
Work around bug in Red Hat 8.0 S-Lang that hides non-ascii characters in
POSIX locale or disable Red Hat 8.0 S-Lang by default.
2002-10-29 21:46:50 +00:00
Andrew V. Samoilov
b932fcb249
* view.c (init_growing_view): Mark message for translating.
...
(normal_search) [HAVE_CHARSET]: Convert saved search string to
original codeset if input_dialog() returns empty string.
2002-10-29 13:01:09 +00:00
Pavel Roskin
dbaf8aee0c
Done:
...
Write a document explaining how to report bugs and ask questions in the
mailing lists.
2002-10-29 01:00:04 +00:00
Pavel Roskin
c7d15b7357
Add:
...
Test for groff and for -P-c option to groff to disable ANSI colors.
2002-10-28 16:36:03 +00:00
Pavel Roskin
3604a2f2d4
Add:
...
Write a document explaining how to report bugs and ask questions in the
mailing lists.
2002-10-28 16:09:17 +00:00
Pavel Roskin
dd16f958a6
Move to "before 4.6.0-pre2":
...
Allow modifiers for keys in mc.lib, like "shift-up".
2002-10-25 22:20:55 +00:00
Pavel Roskin
bec34c88b5
* screen.c (mini_info_separator): Revert last patch. The bug is
...
in Red Hat 8.0 S-Lang.
2002-10-24 23:30:32 +00:00
Pavel Roskin
d6b2ae879a
* screen.c (mini_info_separator): The separator was one
...
character too long.
(show_dir): Remove obsolete linux_unicode hack.
2002-10-24 22:53:01 +00:00
Pavel Roskin
586785c248
* dlg.c (init_dlg): Redraw screen after selecting the focused
...
widget, not before. The bug affected file progress dialog with
verbose operation off.
Reported by Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
2002-10-24 21:26:52 +00:00
Pavel Roskin
ac200c18ba
Clarify the comment.
2002-10-24 21:19:47 +00:00
Pavel Roskin
935a2b4d4e
Reformat. The formatting in those files was unbearable.
2002-10-24 20:25:07 +00:00
Pavel Roskin
11b1447432
* filegui.c (check_progress_buttons): Reinitialize ret_value to
...
avoid old values after incomplete events.
Reported by Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
2002-10-24 20:23:21 +00:00
Pavel Roskin
42070839c7
* man2hlp.c (handle_link): Treat link name after & as regular
...
text.
Suggested by David Martin <dmartina@excite.com>
2002-10-24 13:32:30 +00:00
Andrew V. Samoilov
8085a7d36c
* poptconfig.c (configLine): Cast the argument to functions for
...
character classification to unsigned or use unsigned char *.
(poptReadConfigFile): Likewise.
* popthelp.c (singleOptionHelp): Likewise.
* poptparse.c (poptParseArgvString): Likewise.
2002-10-24 10:02:40 +00:00
Andrew V. Samoilov
8d3ff7384d
* main.c (show_change_notice): Make local variable in main().
...
(compatibility_move_mc_files): Merge with
do_compatibility_move() and return 1 if moving was done, 0
otherwise. Move ~/.mc.tree to ~/.mc/Tree.
2002-10-23 09:01:08 +00:00
Andrew V. Samoilov
2a7a2598df
s/chwon/chown/
2002-10-23 08:26:16 +00:00
Andrew V. Samoilov
cde108f585
* file.c (copy_file_file): Reuse message.
...
(copy_dir_dir): Eliminate one more goto.
2002-10-23 08:22:53 +00:00
Pavel Roskin
05b4cca7cd
Add:
...
Work around bug in Red Hat 8.0 S-Lang that hides non-ascii characters in
POSIX locale or disable Red Hat 8.0 S-Lang by default.
2002-10-23 07:41:22 +00:00
Pavel Roskin
bac6c6eaf2
* man2hlp.c (main): Remove unnecessary spaces in the table of
...
contents.
2002-10-23 00:42:34 +00:00
Pavel Roskin
19a87dbeed
* setup.c: Remove dead code surrounded by
...
SAVE_CHANGES_OUTSIDE_OPTIONS_MENU.
* tree.c: Make tree_navigation_flag static.
2002-10-23 00:17:19 +00:00
Pavel Roskin
4827241c62
* help.h: Remove unused characters.
...
* help.c (show): Remove handling of unused characters.
2002-10-22 23:56:26 +00:00
Pavel Roskin
5824c1bc1d
Add:
...
Backup config files when writing them.
2002-10-22 15:15:29 +00:00
Andrew V. Samoilov
13f6e4646d
* popthelp.c (poptPrintHelp): Use POPT_ for "[OPTION...]",
...
this message is eliminated by poptSetOtherOptionHelp().
* popt.c (poptStrerror): Use _ instead of POPT_ for useful
messages.
2002-10-22 11:51:47 +00:00
Andrew V. Samoilov
499aa8c24f
* utilunix.c (mc_tmpdir): Make directory only if not exists.
...
Use strncpy() instead of g_snprintf() - there can be printf()
pattern(s) in the $TMPDIR.
2002-10-22 11:21:40 +00:00
Andrew V. Samoilov
562cc18d4f
* man2hlp.c (handle_link): Don't strip leading space(s) from linkname.
2002-10-22 06:34:17 +00:00
Pavel Roskin
bd34105979
Done:
...
Add minimal UTF-8 support on Red Hat 8.0 to fix the frames or disable
support for S-Lang library compiled with UTF-8 support.
2002-10-22 04:17:05 +00:00
Pavel Roskin
6247254f55
* myslang.h: Add a replacement for addch(), which expects a
...
wchar_t argument in patched S-Lang on Red Hat 8.0.
2002-10-22 04:16:07 +00:00
Pavel Roskin
c39e68b75c
* main.c (print_mc_usage): Remove unnecessary newline.
2002-10-21 23:34:02 +00:00
Pavel Roskin
1c099a21ec
* main.c (print_mc_usage): Partly revert previous patch -
...
poptPrintHelp() has side effects and should not be called
inside fprintf(), which can be a macro.
2002-10-21 23:28:33 +00:00
Pavel Roskin
f11fe69fe9
* main.c (print_mc_usage): Use poptSetOtherOptionHelp()
...
From Andrew V. Samoilov <sav@bcs.zp.ua>
2002-10-21 23:21:24 +00:00
Pavel Roskin
63d29b4791
* learn.c (learn_check_key): Simplify logic. Add a comment for
...
translators.
2002-10-21 22:54:20 +00:00
Pavel Roskin
a84b0fc9cd
Fix some of the most ugly abuses of mixed caps in English texts,
...
especially in button captions.
2002-10-21 22:26:39 +00:00
Pavel Roskin
71ee494335
* file.h: Rename know_not_what_am_i_doing to safe_delete.
...
* file.c (real_query_recursive): Don't ask to enter "yes" - it's
ugly and requires changing input method in some locales.
2002-10-21 21:03:22 +00:00