Pavel Roskin
8568fc50d9
* Make-alone.am: Get rid of all standalone code, it has been
...
unmaintained for years.
2002-09-10 21:48:49 +00:00
Pavel Roskin
08440f7e8d
* util.c (trim): Handle short strings even better - don't use
...
dots unless necessary.
2002-09-10 21:39:07 +00:00
Pavel Roskin
9af6bedb04
* main.c (load_prompt): Don't shorten the prompt if COLS is 8 or
...
less.
2002-09-10 21:18:11 +00:00
Pavel Roskin
1314fc2a07
* screen.c (show_dir): Don't call trim() with negative length.
...
* util.c (trim): Better handle short length. Make sure that the
destination is always 0-terminated.
2002-09-10 19:58:33 +00:00
Andrew V. Samoilov
aec8a76263
* screen.c (string_file_name): Fix possible off-by-one
...
buffer overflow.
(string_file_size): Avoid unsafe strcpy().
(string_file_size_brief): Likewise. Eliminate buffer array.
2002-09-09 07:28:38 +00:00
Pavel Roskin
6d8e2e73e1
* color.c: Move hascolors variable into init_colors(). Adjust
...
all dependencies.
2002-09-08 17:30:52 +00:00
Pavel Roskin
a480b09b7c
* myslang.h: Remove definition of initscr(), it's unused.
2002-09-08 16:49:41 +00:00
Pavel Roskin
ef9a43a7a3
* tty.h [!HAVE_SLANG]: Remove all slang_* definitions.
...
* main.c (main) [!HAVE_SLANG]: Don't call slang_shutdown().
* myslang.h: Remove slang_done_screen(), it's unused.
2002-09-08 16:22:54 +00:00
Pavel Roskin
5d2757fb8d
* key.c (get_event): Check gpm_fd only if gpm is actually used.
...
* layout.c (done_screen): Move disable_mouse() call ...
* main.c (done_mc): ... here.
2002-09-08 15:50:02 +00:00
Pavel Roskin
d2c8d076f9
* view.c (init_growing_view): Avoid reporting the same error
...
twice. Reported by Moritz Barsnick <moritz@barsnick.net>
2002-09-08 15:22:28 +00:00
Pavel Roskin
9deca156f0
* textconf.c: Don't use SLANG_TERMINFO, which is unused anywhere
...
else. Assume that terminfo is used if USE_TERMCAP is undefined.
2002-09-07 07:36:59 +00:00
Pavel Roskin
7d723361b2
* subshell.c (subshell_name_quote): Return NULL if we are out of
...
memory. Use "echo -e" with zsh (Debian bug #150996 ).
(do_subshell_chdir): Be prepared to get NULL from
subshell_name_quote().
2002-09-07 00:27:53 +00:00
Pavel Roskin
53982cb546
* profile.c: Remove unused code. Eliminate global variables.
...
(is_loaded): Rename to find_loaded(). return matching profile.
Adjust all dependencies.
2002-09-06 20:25:15 +00:00
Pavel Roskin
ca90bd204f
* fs.h: Only redefine S_IS* macros if they are undefined, and
...
then define them to 0. S_IF* constants should be avoided.
* util.c : Whenever possible, use standard POSIX macros to test
for the file type.
Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
2002-09-06 19:23:45 +00:00
Pavel Roskin
ff8cf87949
* cmd.c (nice_cd): Fix conditions when this function is
...
compiled.
2002-09-06 01:30:50 +00:00
Pavel Roskin
a36e7b7fad
* fs.h: Replace S_IFFIFO with S_IFIFO, which is the right name.
2002-09-06 00:52:35 +00:00
Pavel Roskin
5e9c0314a2
* fs.h: Correct S_IS* definitions to use S_IFMT. Add fallback
...
definitions for S_IFDOOR and S_ISDOOR.
* screen.c (string_file_type): Remove unnesessary ifdefs, fs.h
takes care of it.
(file_compute_color): Add support for Solaris doors.
* util.c (string_perm): Remove unnesessary ifdef.
2002-09-06 00:47:46 +00:00
Pavel Roskin
d520b9f76f
* man2hlp.c (handle_command): Make clear that unsupported
...
command is a warning, not an error. Avoid unsafe strcat().
2002-09-05 20:47:12 +00:00
Pavel Roskin
cac0accb55
* view.c (view_mode_callback): Eliminate, use the default
...
callback.
2002-09-05 19:16:18 +00:00
Pavel Roskin
87da6b9f42
* main.c (load_hint): Don't hardcode copyright years. Use a
...
translated message.
2002-09-05 16:36:43 +00:00
Pavel Roskin
01e2780615
* main.c (midnight_callback): Avoid calling the default DLG_DRAW
...
handler. From David Martin <dmartina@excite.com>
2002-09-05 06:59:17 +00:00
Pavel Roskin
63a2d3dceb
Compile fix.
2002-09-05 06:55:50 +00:00
Pavel Roskin
b248f6bb32
* help.c (help_handle_key): Sanity check for broken help files.
...
From David Martin <dmartina@excite.com>
2002-09-05 06:51:46 +00:00
Pavel Roskin
206fdf6f1d
* global.h: Eliminate xgetch, update all dependencies.
2002-09-03 22:23:27 +00:00
Pavel Roskin
556f733f12
* boxes.c: Fix remaining old-style calls to create_dlg().
...
* complete.c: Likewise.
* main.c: Likewise.
* view.c: Likewise.
2002-09-03 20:19:22 +00:00
Pavel Roskin
97148e3e55
Reuse the same title "Find File". Reformat most ugly code.
2002-09-03 20:04:54 +00:00
Pavel Roskin
facfea1d40
* wtools.c: Remove Chooser, its unused.
2002-09-03 19:57:13 +00:00
Pavel Roskin
dce476e552
* dlg.c: Fix the case when the dialog has no title.
2002-09-03 19:19:23 +00:00
Pavel Roskin
0d7af2cdba
* acinclude.m4: Remove Termnet support, it's too old and obscure
...
to be supported properly.
2002-09-03 17:58:26 +00:00
Pavel Roskin
2b41a2e4e2
One translatable message less.
2002-09-03 17:46:15 +00:00
Pavel Roskin
77791e773f
* wtools.c (real_input_dialog_help): Use a more reliable way
...
to indicate password input.
2002-09-03 17:36:27 +00:00
Pavel Roskin
f098afae04
* boxes.c (display_widgets) [!HAVE_CHARSET]: Fix initialization.
...
(vfs_smb_get_authinfo): Reuse another translated string.
2002-09-03 17:30:16 +00:00
Pavel Roskin
09df85b9b7
Reuse other translated strings.
2002-09-03 16:55:05 +00:00
Pavel Roskin
d9c6403250
* wtools.h (QuickDialog): Eliminate the "class" field - it's not
...
used and it can clash with C++ code. Adjust all dependencies.
2002-09-03 08:00:02 +00:00
Pavel Roskin
6c2eb32b70
* dlg.c (x_set_dialog_title): Completely eliminate. Adjust all
...
dependencies.
2002-09-03 07:42:36 +00:00
Pavel Roskin
00baa9f8fe
* help.c (interactive_display): Fallback to node "[main]" if the
...
requested node cannot be found.
2002-09-03 07:22:23 +00:00
Pavel Roskin
afae5939cd
* help.c (help_index_cmd): Eliminate unneeded search for
...
"[Help]", which always fails. Fix crash if "[Contents]" cannot
be found. Reuse more generic error message.
2002-09-03 07:15:01 +00:00
Pavel Roskin
52caab36b8
* filegui.c: Eliminate x_set_dialog_title().
...
* hotlist.c: Likewise.
* help.c: Likewise.
(interactive_display): Default to node "[main]" if the given
node is empty.
2002-09-03 06:53:11 +00:00
Pavel Roskin
69a3777112
* dlg.c (create_dlg): Take title instead of unused name as the
...
8-th argument.
(x_set_dialog_title): Free old title. Mark this function
obsolete.
* achown.c: Use new create_dlg().
(do_enter_key): Provide titles for popups.
2002-09-02 19:24:23 +00:00
Pavel Roskin
67cfc5d84d
* dlg.c: Remove unused code, make functions static if possible.
2002-09-02 18:42:49 +00:00
Pavel Roskin
6f0c076c65
* chmod.c: Use common_dialog_repaint().
...
* chown.c: Likewise.
* layout.c: Likewise.
* option.c: Likewise.
2002-09-02 18:03:15 +00:00
Pavel Roskin
e000c69683
* wtools.c (common_dialog_callback): Fold into ...
...
* dlg.c (default_dlg_callback): ... this. Don't redraw dialogs
that don't have colors. Adjust all dependencies.
(std_callback): Elimitate.
2002-09-02 16:31:33 +00:00
Pavel Roskin
7e0d162f5e
* panelize.c (panelize_refresh): Eliminate in favor of
...
common_dialog_callback().
2002-09-02 08:22:50 +00:00
Pavel Roskin
0df513bcc2
* widget.c (history_callback): Eliminate in favor of
...
common_dialog_callback().
(show_hist): Set dialog title and flag DLG_COMPACT.
2002-09-02 08:01:35 +00:00
Pavel Roskin
43509ea980
* help.c (help_callback): Use common_dialog_callback().
...
(interactive_display): Set dialog title.
2002-09-02 07:48:01 +00:00
Pavel Roskin
1e2884e94d
* wtools.c (listbox_callback): Eliminate in favor of
...
common_dialog_callback().
2002-09-02 07:37:15 +00:00
Pavel Roskin
1f478c647a
* wtools.c (dialog_repaint): Eliminate, nobody should be using
...
non-standard colors. Adjust all dependencies.
(common_dialog_repaint): Fix return code.
(query_callback): Eliminate, use common_dialog_callback()
instead.
2002-09-02 07:31:19 +00:00
Pavel Roskin
812e80c85a
Add a comment saying where the code is broken and why.
2002-09-02 07:18:51 +00:00
Pavel Roskin
cec127c569
* listmode.c (listmode_refresh): Use common_dialog_repaint().
...
Eliminate all global variables. Reformat the whole file.
2002-09-02 06:06:49 +00:00
Pavel Roskin
946e09abc2
* boxes.c (init_disp_bits_box): Use common_dialog_callback().
...
Return the new dialog.
2002-09-02 05:32:14 +00:00