Andrew V. Samoilov
ed53105975
Fix const. Partially revert previous patch.
2004-09-17 08:46:53 +00:00
Andrew V. Samoilov
80ad2213bb
* wtools.h (QuickWidget): Make text const.
...
* wtools.c (fg_input_dialog_help): Fix warning.
2004-09-17 03:19:21 +00:00
Andrew V. Samoilov
0b032ef66f
* hotlist.c (add_new_entry_input): Fix warnings.
2004-09-17 03:02:18 +00:00
Andrew V. Samoilov
0e7b3d6ac6
* utilunix.c (tilde_expand): Fix extra slash in result from
...
tilde_expand() for ~<user>/dir.
2004-09-14 17:39:12 +00:00
Andrew V. Samoilov
8919656440
* utilunix.c (tilde_expand): Fix extra slash in result from tilde_expand() for ~<user>/dir.
2004-09-14 17:23:16 +00:00
Andrew V. Samoilov
ee2e35afb4
* key.c (get_modifier): Recognize keyboard modifiers on Cygwin.
2004-09-14 17:18:25 +00:00
Andrew V. Samoilov
e3698948a4
* execute.c (toggle_panels): Fix error. show_output_starts_shell=1
...
is not working
* cmd.c (view_other_cmd): Likewise.
2004-09-12 10:52:17 +00:00
Andrew V. Samoilov
7ff781db70
* view.c (get_byte): Fix avoid dying if file is too large
...
to fit into memory.
(load_view_file): Fix avoid mmaping just part of a >=4GB file
on 32-bit arches.
* setup.c (load_keys_from_section): Handle "copy".
2004-09-10 09:25:20 +00:00
Andrew V. Samoilov
b6ad379291
* view.c (get_byte): Fix avoid dying if file is too large
...
to fit into memory.
(load_view_file): Fix avoid mmaping just part of a >=4GB file
on 32-bit arches.
2004-09-10 09:14:55 +00:00
Andrew V. Samoilov
9e27c8703a
* info.c (info_show_info): don't truncate block counts to 32 bits
...
on 64-bit platforms
* util.c (get_current_wd): We know there is just one '\0' byte
in p, at p[len - 1].
2004-09-03 22:32:41 +00:00
Andrew V. Samoilov
7c9f703060
* util.c (get_current_wd): We know there is just one '\0' byte
...
in p, at p[len - 1].
2004-09-03 22:05:13 +00:00
Andrew V. Samoilov
2253379eb8
* subshell.c (exit_subshell): Prevent unwanted reuse of freed
...
pty_buffer.
* complete.c (variable_completion_function): strncpy()->memcpy()
changes are because we know there is no '\0' among the first
length bytes.
(insert_text): Likewise.
(command_completion_function): Avoid memory leaks.
(filename_completion_function): g_free handles NULL argument too,
no need for the comparison.
(try_complete): Likewise.
(command_completion_function): Likewise.
(free_completions): Likewise.
* widget.c (gauge_callback): Fix for 64-bit arches (%*s len must
be int, %3d takes int.
(copy_region): g_free handles NULL argument too, no need for
the comparison.
(kill_line): Likewise.
* find.c (do_search): Likewise.
(init_find_vars): Likewise.
(do_find): Likewise.
2004-09-03 22:00:27 +00:00
Andrew V. Samoilov
d3e4fcb5b0
* menu.c (destroy_menu): Fix warnings.
...
* view.c (view_adjust_size): Likewise.
* widget.c (find_buttonbar): Likewise.
2004-09-02 20:14:12 +00:00
Roland Illig
3fe957aef4
* Makefile.am (man2hlp): Added source file glibcompat.c for
...
glib-1.2 compatibility.
2004-09-02 15:03:48 +00:00
Roland Illig
207711e166
Typo.
2004-09-02 14:59:12 +00:00
Roland Illig
f30fc0163b
* man2hlp.c (handle_link): Added header "glib-compat.h" because
...
glib-1.2 does not know g_strlcpy.
2004-09-02 14:32:53 +00:00
Roland Illig
68fa8e1cd8
* color.c (try_alloc_color_pair (ncurses)): Added const qualifier
...
to the arguments.
2004-09-02 12:51:09 +00:00
Roland Illig
38257a486a
* man2hlp.c (handle_link): Reverted the last change because
...
glib-1.2 does not know g_strlcpy.
2004-09-02 12:30:28 +00:00
Andrew V. Samoilov
1b80f9ceac
* complete.c (completion_matches): Use more suitable function
...
g_strndup(), instead sequence g_malloc(), strncpy(),
name[len] = '\0'
* widget.c (copy_region): Likewise. (delete_region): Use
memmove() instead strcpy().
* user.c (debug_out): Eliminate buffer array.
2004-09-01 23:25:21 +00:00
Andrew V. Samoilov
f27d0e157f
* color.c (load_dialog_colors): Make a separate color for
...
hotkeys in red dialogs.
* color.h: Likewise.
* view.c (view_ok_to_quit): Add hotkey to dialog.
2004-09-01 22:33:43 +00:00
Andrew V. Samoilov
de59cf86c4
* user.c (check_format_var): Use more suitable function
...
g_strndup, instead sequence g_malloc(), strncpy(), name[len] = '\0'
* man2hlp.c (handle_link): Use g_strlcpy instead sequence
strncpy(), name[len] = '\0'
* profile.c (GetSetProfile): Likewise.
* wtools.c (fg_input_dialog_help): Likewise.
2004-09-01 18:31:24 +00:00
Andrew V. Samoilov
03ddc6c8e9
* wtools.h: Fix warnings.
...
* selcodepage.c (select_charset): Likewise.
* boxes.c (display_bits_box): Likewise.
2004-09-01 17:46:53 +00:00
Andrew V. Samoilov
facaac9889
* color.c (mc_init_pair): Use cast to avoid warning.
...
* screen.c (display_mini_info): Likewise.
* slint.c (do_define_key): Likewise.
* tree.c (tree_show_mini_info): Likewise. (show_tree):Likewise.
* view.c (view_status): Likewise.
2004-08-31 23:34:18 +00:00
Roland Illig
2ed35b596c
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional
changes. Patch contributed by Andrew V Samoilov.
2004-08-30 10:38:00 +00:00
Roland Illig
3da9abba54
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-30 00:02:36 +00:00
Roland Illig
7bff9337c0
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. Additionally wrapped
the calls to putenv() by g_strdup().
2004-08-29 23:59:17 +00:00
Roland Illig
3f3c24f511
* view.c (move_backward2): Removed unused variables.
2004-08-29 23:56:53 +00:00
Roland Illig
1d573d9059
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 23:54:47 +00:00
Roland Illig
3957415603
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 23:39:38 +00:00
Roland Illig
03913065b4
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 23:27:40 +00:00
Roland Illig
17714fd8d9
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 23:20:01 +00:00
Roland Illig
4c1ea14493
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. Now using two temp
variables: one for strings that need not be freed (temp) and
one for strings that need to (temp2).
2004-08-29 22:55:57 +00:00
Roland Illig
5697bd2a92
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 22:51:02 +00:00
Roland Illig
d6d457ba9a
* dialog.c: made the callback parameter of find_widget_type correctly typed.
2004-08-29 22:44:17 +00:00
Roland Illig
b75c5a31a3
* dialog.h: marked the title as "notconst", as it is freed
...
by the destructor.
2004-08-29 22:43:27 +00:00
Roland Illig
5c4add0e6e
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 22:38:06 +00:00
Roland Illig
b86b6a7bc7
* background.c (do_background): Fixed file descriptor leak.
2004-08-29 18:57:31 +00:00
Roland Illig
243e84706e
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 18:45:56 +00:00
Roland Illig
4baefa09c2
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 17:15:23 +00:00
Roland Illig
8458240147
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 16:42:40 +00:00
Roland Illig
6f68fa3082
* cmd.c (do_link): Fixed memory leak and cleaned up code.
2004-08-26 00:12:16 +00:00
Roland Illig
1544da13a1
Added missing ChangeLog entries from 2004-08-16.
2004-08-24 12:58:56 +00:00
Andrew V. Samoilov
6ca233ecea
* utilunix.c (tilde_expand): Use more suitable function
...
g_strndup, instead sequence g_malloc, strncpy, name[len] = '\0'
2004-08-20 21:28:05 +00:00
Roland Illig
fb4fd57695
* view.c (move_backward2): Bugfix: Only move the view if the cursor would be out-of-view.
2004-08-19 19:34:16 +00:00
Roland Illig
a540dee8b5
Fixed misleading indentation.
2004-08-19 19:19:04 +00:00
Roland Illig
ea14b320f7
* util.h (move_backward2): Fixed endless loop. Cleaned up code. The only case that's left with the old code is text mode with line wrapping. (move_backward2_textmode_wrap): The special case of moving some lines up in text mode with line wrapping enabled.
2004-08-19 19:16:57 +00:00
Roland Illig
d3a5b40c19
* util.h: Added the function free_after for easier handling of dynamically allocated strings.
2004-08-19 11:35:56 +00:00
Roland Illig
c6e3dde5a5
* util.c: Added the function str_replace, which replaces all occurences of a character in a string.
2004-08-19 11:26:48 +00:00
Andrew V. Samoilov
fecb161283
x.c (mc_tmpdir): Fix typos in comment.
...
Set MC_TMPDIR environment variable for vfs scripts.
Clear error after successful test of mc temp dir.
2004-08-18 20:34:01 +00:00
Roland Illig
226177cf11
"make uninstall" removes the symlinks bin/mcedit and bin/mcview.
2004-08-18 20:22:59 +00:00
Andrew V. Samoilov
03976121d9
* screen.c (paint_frame): Fix possible buffer overflow.
2004-08-18 19:55:47 +00:00
Roland Illig
bc8127ded6
Added more const-ness.
2004-08-18 08:58:37 +00:00
Roland Illig
25d3b4b489
Added a FIXME comment concerning the interpretation of the "cd" command.
2004-08-17 20:08:07 +00:00
Andrew V. Samoilov
6776c2cdb9
do_background: Use O_RDWR when opening the file '/dev/null'
...
for replacement standard streams.
2004-08-17 20:01:58 +00:00
Andrew V. Samoilov
ff6051511f
ckground.c (do_background): Use O_RDWR when opening the file '/dev/null'
...
for replacement standard streams.
2004-08-17 20:01:30 +00:00
Andrew V. Samoilov
d3d15be22f
utilunix.c(mc_tmpdir): Check return value of getpwuid() for NULL.
2004-08-17 18:46:33 +00:00
Andrew V. Samoilov
72488a9d6c
mc_tmpdir: Check return value of getpwuid() for NULL.
2004-08-17 18:45:47 +00:00
Roland Illig
756067410f
Removed trailing comma in enumeration.
2004-08-17 11:13:10 +00:00
Roland Illig
2ebf787653
Renamed version to show_version to avoid name clashes.
2004-08-17 10:40:16 +00:00
Roland Illig
207f7d126c
Even more const-ification.
2004-08-17 00:00:32 +00:00
Roland Illig
5c74367969
Added more const-ness to variables.
2004-08-16 23:48:46 +00:00
Roland Illig
1105b8e941
Splittet the vfs.h header into a user's part (vfs.h) and an implementor's part (vfs-impl.h).
2004-08-16 23:25:49 +00:00
Roland Illig
9d41314d09
Added more const-ness to print_vfs_message.
2004-08-16 18:31:30 +00:00
Roland Illig
a22afa7a72
Added more const-ness to variables.
2004-08-16 18:31:05 +00:00
Roland Illig
9dfb30636e
Compacted and commented the code in do_try_to_select.
2004-08-16 18:30:34 +00:00
Roland Illig
511c710fe6
Added explicit initializers for global variables.
2004-08-16 18:25:16 +00:00
Roland Illig
2c77aa7e1c
Documented x_basename and added const.
2004-08-16 18:19:37 +00:00
Roland Illig
2399a1604f
Removed unnecessary type cast.
2004-08-16 17:45:59 +00:00
Roland Illig
493febff35
Added more const-ness to a variable.
2004-08-16 17:45:38 +00:00
Roland Illig
13e298c2ea
Replaced (char *) 0 by NULL.
2004-08-16 17:44:14 +00:00
Roland Illig
b2605e09e9
Code cleanup concerning PAUSE_OPTIONS.
2004-08-16 17:43:36 +00:00
Roland Illig
d003fcb1e0
Use memmove instead of memcpy for overlapping objects.
2004-08-16 17:42:47 +00:00
Roland Illig
748279de99
Added more const-ness to the function arguments.
2004-08-16 16:22:35 +00:00
Roland Illig
bfb2047463
Removed unnecessary type cast.
2004-08-16 16:22:14 +00:00
Roland Illig
8aeea3256f
Added more const-ness to the function arguments.
2004-08-16 15:45:05 +00:00
Roland Illig
5d44086ccc
Added a C++ like const_cast macro.
2004-08-16 15:42:48 +00:00
Roland Illig
f17c1f291c
mc_ungetlocalcopy does not free its second argument anymore.
2004-08-16 15:18:17 +00:00
Roland Illig
f4129bc22b
Fixed a format string bug (%s => %d).
2004-08-16 05:17:49 +00:00
Roland Illig
60ae60fb1e
Print the pid as an int.
2004-08-16 04:57:07 +00:00
Roland Illig
6bd6aa7b50
Made output of the st_mode system independent.
2004-08-16 04:56:19 +00:00
Roland Illig
c673ebfc89
Made an integer literal compatible to the variable it is compared with.
2004-08-16 04:25:41 +00:00
Roland Illig
7adbbafc6a
Made the data type of some variables more appropriate.
2004-08-16 04:25:06 +00:00
Roland Illig
bdd1d219a3
Created a new type (tree_key_map) for functions that act on a tree.
2004-08-16 04:24:45 +00:00
Roland Illig
a91c5b9ad2
Created a new type (panel_key_map) and wrote some wrapper functions where the parameters didn't match. Adjusted the type of some variables.
2004-08-16 04:24:04 +00:00
Roland Illig
e0ea1733e3
The type key_callback has got a real prototype.
2004-08-16 04:20:56 +00:00
Roland Illig
b08778c9c6
Made the data type of some variables more appropriate.
2004-08-16 04:17:43 +00:00
Roland Illig
e0512c10dc
Invented two new data types (offset_type and screen_dimen) and adjusted the type of many variables.
2004-08-16 04:16:55 +00:00
Roland Illig
4afb6e832d
Added a prototype to the function declaration.
2004-08-16 03:24:49 +00:00
Roland Illig
0784d2a7b7
Added type casts where necessary to avoid the "signed-unsigned-comparison" warning.
2004-08-16 03:14:04 +00:00
Roland Illig
6cefb6d3bb
Made the data type of some variables more appropriate.
2004-08-16 03:12:05 +00:00
Roland Illig
397d28da8f
Corrected data type in printf argument.
2004-08-15 23:09:36 +00:00
Roland Illig
a47ff4dece
Added missing initializers for poptOption.argDescrip.
2004-08-15 23:06:19 +00:00
Roland Illig
a553518dc7
Corrected data type in printf argument.
2004-08-15 23:03:08 +00:00
Roland Illig
1fe1eb886a
Marked the last item of a QuickWidget array as NULL_QuickWidget.
2004-08-15 19:04:19 +00:00
Roland Illig
c6ecc5b303
Marked the last item of a QuickWidget array as NULL_QuickWidget.
2004-08-15 18:24:06 +00:00
Roland Illig
6607288ca0
Added missing initializers.
2004-08-15 18:23:25 +00:00
Roland Illig
80ed49f132
Marked the last item of a QuickWidget array as NULL_QuickWidget.
2004-08-15 18:22:39 +00:00
Roland Illig
fea3a45fff
Added the macro NULL_QuickWidget for safer declarations of arrays of QuickWidgets.
2004-08-15 18:17:40 +00:00
Pavel Roskin
3a0c1187b2
* vfsdummy.h [!USE_VFS]: Make sure that vfs_canon() doesn't
...
change the original string. Fix compilation without VFS.
2004-04-18 20:56:08 +00:00
Andrew V. Samoilov
49bcfac068
* (insert_char): Use g_realloc() instead of g_malloc()+strcpy()+g_free().
2004-03-07 07:29:12 +00:00
Andrew V. Samoilov
50dda0fcb3
* user.c (extract_line): Add a new parameter (size of the
...
output buffer) to prevent buffer overflow.
2004-03-07 06:24:14 +00:00
Andrew V. Samoilov
d1943ab8cf
* achown.c (init_chown_advanced) [ENABLE_NLS]: i18n fix.
2004-03-07 06:21:16 +00:00
Pavel Roskin
d78f9b9bf0
* subshell.c: Partly revert previous patch to preserve translated strings.
2004-03-05 08:08:13 +00:00
Pavel Roskin
0899d3f580
Fix date of the last commit.
2004-03-05 08:05:18 +00:00
Pavel Roskin
3722e428c0
* subshell.c: Partly revert previous patch to preserve
...
translated strings.
2004-03-05 08:01:44 +00:00
Pavel Roskin
b46fe283f6
Fix use of uninitialized pty_name.
2004-02-10 00:16:17 +00:00
Pavel Roskin
7eb0ef8bd2
* subshell.c: Use "rn" at the end of all error messages.
...
Don't use perror(). Make error messages more exact.
2004-02-10 00:11:09 +00:00
Pavel Roskin
291f976b13
* utilunix.c (canonicalize_pathname): Add support for UNC paths.
2004-01-24 00:17:34 +00:00
Pavel Roskin
4ced5086ac
* utilunix.c (canonicalize_pathname): Return void to make it
...
clear that the conversion is done in place. Adjust all callers.
2004-01-23 23:53:37 +00:00
Pavel Roskin
c7c3073133
* filegui.c (init_replace): Don't show the "Reget" button when
...
moving files. Reported by Arpad Biro <biro_arpad@yahoo.com>
2004-01-23 22:08:05 +00:00
Pavel Roskin
efff2a4d4e
* fileopctx.h: Add "operation" filed to FileOpContext.
...
* fileopctx.c (file_op_context_new): Add "operation" argument.
* filegui.c (file_op_context_create_ui): Remove "operation"
argument, it's known already. Adjust all callers.
2004-01-23 21:59:38 +00:00
Pavel Roskin
9fe5ee23c9
* user.c (execute_menu_command): Put /bin/sh in the beginning of
...
the script.
2004-01-23 17:33:36 +00:00
Pavel Roskin
1d6ab07a10
* screen.c (display_mini_info): Correctly fill the space after
...
"<readlink failed>".
2004-01-22 08:25:23 +00:00
Pavel Roskin
429f1a476e
* glibcompat.h: Fix definition of g_try_realloc().
2004-01-22 07:19:58 +00:00
Dmitry Alexeyev
6147cf303e
* key.c (get_event): Treat all negative values of gpm_fd in the
...
same way. Add one more check that gpm is alive.
2003-12-24 07:21:34 +00:00
Dmitry Alexeyev
1172440f67
Warning fix from Dmitry Alexeyev <dmi_a@qnx.org.ru>
2003-12-24 07:11:31 +00:00
Dmitry Alexeyev
95a681cd24
* layout.c (rotate_dash): Set color before printing the dash.
2003-12-24 06:43:26 +00:00
Pavel Roskin
b151ce4419
Constify rotating_dash.
2003-12-06 04:04:27 +00:00
Pavel Roskin
c1b37a392b
Typo fix.
2003-12-06 04:03:07 +00:00
Pavel Roskin
125456c5d8
* command.c (examine_cd): Add tilde expansion.
2003-12-01 16:59:29 +00:00
Pavel Roskin
e30307ea4a
* utilunix.c (tilde_expand): Correct last fix, simplify code.
...
Reported by David Sterba <dave@jikos.cz>
2003-11-28 15:23:19 +00:00
Pavel Roskin
ab4e930084
* execute.c (toggle_panels): Refresh panels after returning from
...
Ctrl-O.
2003-11-27 18:19:57 +00:00
Pavel Roskin
7c0f20bcb8
* src/TODO: Move ...
...
* TODO: ... here.
* doc/DEVEL: Move ...
* HACKING: ... here. Adjust makefiles.
2003-11-27 18:06:56 +00:00
Pavel Roskin
1edc838fb9
TODO for version 4.6.1 completed.
2003-11-27 17:58:40 +00:00
Pavel Roskin
73968fe432
* cmd.c (view_file_cmd): Use input_expand_dialog().
2003-11-27 17:52:55 +00:00
Pavel Roskin
2256237cd9
* wtools.c (quick_dialog_skip): Perform tilde expansion on input
...
widgets that use cd completion.
2003-11-27 09:55:15 +00:00
Pavel Roskin
42da92333f
* utilunix.c (tilde_expand): Preserve tilde if the username
...
could not be found. Don't ever return NULL. Change callers not
to check for NULL.
2003-11-27 09:45:22 +00:00
Pavel Roskin
e55f09f530
* dialog.c (do_select_widget): New function that it the only one
...
calling dlg_focus() and dlg_unfocus(). Incorporate code from
other functions that did it.
(dlg_select_widget): Change return type to void.
2003-11-27 08:59:54 +00:00
Pavel Roskin
04b4194371
* dialog.h (dlg_widget_active): New function - check if the
...
widget is active.
* boxes.c (display_callback): Use it.
* layout.c (swap_panels): Likewise.
* screen.c (do_panel_event): Likewise.
2003-11-27 00:46:39 +00:00
Pavel Roskin
73241613c2
* dialog.c: Eliminate callback macro.
2003-11-27 00:34:00 +00:00
Pavel Roskin
bf4c26959c
* dialog.c (dlg_replace_widget): Use dlg_select_widget().
...
(select_a_widget): Rename to select_other_widget(), factorize
most code from dlg_one_up() and dlg_one_down().
2003-11-27 00:17:43 +00:00
Pavel Roskin
0657d80ec7
Done: VFS crash.
2003-11-26 21:26:11 +00:00
Pavel Roskin
645eeb8118
* complete.c (check_is_cd): Simplify logic, use isspace().
2003-11-24 21:22:00 +00:00
Pavel Roskin
baa4e26cdc
* hotlist.c (add_new_group_input): Clean up.
...
* wtools.c (do_create_message): Eliminate g_strdup_printf().
(bg_message): Likewise.
2003-11-24 20:34:45 +00:00
Pavel Roskin
20b89d5436
* view.c (check_left_right_keys): Implement fast scrolling if
...
Ctrl is pressed. Idea by Arpad Biro <biro_arpad@yahoo.com>
2003-11-21 06:27:14 +00:00
Pavel Roskin
d839fbc15a
* execute.c (do_execute): Use get_key_code(), not getch() to
...
consume all characters from a single sequence.
Reported by Miven Dooligan <dooligan@intergate.ca>
2003-11-21 05:31:59 +00:00
Pavel Roskin
a128188ae1
Warning fixes for FreeBSD 5.1.
2003-11-21 03:17:18 +00:00
Pavel Roskin
99e6b0f929
* glibcompat.h: Provide replacement for g_slist_delete_link().
...
Reported by Pavel S. Shirshov <pavelsh@mail.ru>
2003-11-20 20:25:33 +00:00
Pavel Roskin
948cfd2606
* util.c (load_mc_home_file): Eliminate g_strdup_printf().
2003-11-20 18:38:29 +00:00
Pavel Roskin
474fc58d94
* user.c (expand_format): Preserve "%" if followed by a
...
characted without special meaning.
2003-11-19 22:56:07 +00:00
Pavel Roskin
bf39c2c4ef
* glibcompat.h: Define g_try_realloc as realloc for glib 1.2.x.
2003-11-14 20:48:13 +00:00
Pavel Roskin
4a9c0da0b0
* main.c (midnight_callback): Ctrl-Shift-Enter now copies full
...
path to the command line, like in Total Commander.
2003-11-14 20:43:11 +00:00
Pavel Roskin
29d16f22be
Typo fixes.
2003-11-14 14:40:25 +00:00
Pavel Roskin
b57b6069b9
Fixed: VFS split.
2003-11-14 08:27:22 +00:00
Pavel Roskin
d739c12313
Shift most changes to "After 4.6.1". Add most urgent regressions.
2003-11-13 17:32:31 +00:00
Pavel Roskin
12d78ba8df
* boxes.c: Include "../vfs/gc.h" if VFS is used.
...
* hotlist.c: Likewise.
* key.c: Likewise.
* main.c: Likewise.
* setup.c: Likewise.
2003-11-07 23:50:18 +00:00
Pavel Roskin
083d26f3c8
* view.c (free_file): Don't use check_error_pipe(), display
...
error messages in close_error_pipe().
* utilunix.c (check_error_pipe): Remove, it's unused.
2003-11-07 21:15:47 +00:00
Pavel Roskin
0a9c708bec
Fixes for bad strings:
...
"In this cases"
"~/.netrc file has not correct mode"
Reported by Arpad Biro <biro_arpad@yahoo.com>
2003-11-05 00:33:34 +00:00
Pavel Roskin
fce80af570
* widget.[ch] (listbox_search_text): Constify "text" argument.
...
(listbox_add_item): Ditto.
* find.c (add_to_list): Make inline.
(stop_idle): Ditto.
(status_update): Ditto.
(get_list_info): Ditto.
(push_directory): Constify "dir" argument and use
concat_dir_and_file() instead of g_strdup().
(find_add_match): Constify "dir" and "file" arguments.
(insert_file): Ditto. Don't append trailing PATH_SEP, it's done
in push_directory().
(search_content): Constify "directory" and "filename" arguments.
(do_search): Make "directory" char * instead of char[].
2003-10-30 16:43:22 +00:00
Pavel Roskin
0ba019a90b
* configure.in: Use AC_CHECK_MEMBERS to check fields of struct
...
stat. Adjust all dependencies.
2003-10-29 17:36:16 +00:00
Pavel Roskin
8bc40b44f0
Fix includes not to rely on $(top_srcdir) being in the include path.
2003-10-29 08:54:22 +00:00
Pavel Roskin
036d1d4602
* fsusage.c: Merge ...
...
* mountlist.c: ... here. These files are closely related. Move
some defines from extraconf.h here.
* fsusage.h: Remove.
* Makefile.am: Remove fsusage.c and fsusage.h.
2003-10-29 08:12:44 +00:00
Pavel Roskin
5f35b799bb
No need to undefine USE_NETCODE.
2003-10-29 06:58:14 +00:00
Pavel Roskin
87206cfeb5
* ext.c (regex_check_type): Use mc_getlocalcopy() instead of
...
piping first 8k to "file". If the user selected the file, we
are likely to need the whole file. Besides, mc_getlocalcopy()
on ftpfs and fish shares file cache with other VFS operations.
(get_file_type_pipe): Remove.
(mc_doublepopen): Likewise.
(mc_doublepclose): Likewise.
2003-10-29 01:15:16 +00:00
Pavel Roskin
ffddff51ea
* utilunix.c: Move mc_doublepopen() and mc_doublepclose() ...
...
* ext.c: ... where they are used.
2003-10-27 21:51:48 +00:00
Pavel Roskin
0e71b37f2a
Don't include background.h if it's not needed.
...
If needed, add explanation.
2003-10-27 17:36:19 +00:00
Pavel Roskin
e829a85981
* slint.c (mc_refresh): Revert last change - it breaks screen
...
restoring on rxvt.
2003-10-27 17:34:57 +00:00
Pavel Roskin
1ddf30732b
* tree.c (tree_rmdir_cmd): Don't change to the root directory -
...
it's not needed now.
2003-10-27 17:21:13 +00:00
Pavel Roskin
2bf7ae1b6c
* win.c (check_movement_keys): Add support for Ctrl-PgDown,
...
Ctrl-PgUp, Ctrl-Home and Ctrl-End.
2003-10-27 05:59:03 +00:00
Pavel Roskin
290426d17a
* terms.c: Merge ...
...
* win.c: ... here.
* Makefile.am: Remove terms.c.
2003-10-26 07:02:13 +00:00
Pavel Roskin
24384e9a89
* panel.h: Fix duplication between cpanel and current_panel in
...
favor of current_panel. Ditto opanel and other_panel.
2003-10-26 06:45:59 +00:00
Pavel Roskin
bb13ad8db4
* main.c (get_current_panel): Remove.
...
(get_other_panel): Move ...
* layout.c: ... here.
2003-10-26 06:32:42 +00:00
Pavel Roskin
dca92d4941
Trivial cleanup.
2003-10-26 06:16:54 +00:00
Pavel Roskin
5b876f358d
* info.h: Don't expose WInfo internals.
2003-10-26 05:54:55 +00:00
Pavel Roskin
26e444a11c
* background.c (tell_parent): Eliminate.
...
(background_attention): Use error code instead.
* file.c (panel_operate): Exit with code 0, not 1.
2003-10-26 05:42:29 +00:00
Pavel Roskin
211ce16fac
* wtools.c: Merge mc_message() and message() into one background
...
safe function message(). Fix all callers.
2003-10-26 04:47:20 +00:00
Pavel Roskin
f9e5058942
Include global.h, not i18n.h.
2003-10-26 04:15:17 +00:00
Pavel Roskin
82688029da
* i18n.h: Include into global.h.
...
* Makefile.am: Remove i18n.h.
2003-10-26 04:11:12 +00:00
Pavel Roskin
d35cffb9d9
Clean up includes.
2003-10-26 04:03:07 +00:00
Pavel Roskin
06f9c3d0c1
Add:
...
Safe and restore file position in the viewer.
2003-10-26 01:34:47 +00:00
Pavel Roskin
a08f91eb63
* background.c: Clean up includes.
...
(do_background): Set current_dlg to NULL for the child process.
* dialog.h (do_complete_refresh): Don't use we_are_background.
* file.h: Remove dependency on background.h.
* background.h: Define we_are_background. Move mc_message() ...
* wtools.h: ... here.
* key.h: Don't define we_are_background.
* slint.c (mc_refresh): Use current_dialog instead of
we_are_background to fix compilation without WITH_BACKGROUND.
2003-10-26 00:58:14 +00:00
Pavel Roskin
ec7f14f929
* background.c (do_background): Use pipe() instead of less
...
portable socketpair(). Close comm[0] in the child.
2003-10-25 22:15:52 +00:00
Pavel Roskin
d999b186f1
* wtools.c (mc_message): Fix argument expansion.
2003-10-25 22:13:01 +00:00
Pavel Roskin
00d12acfb3
* background.c: Leave only code used when WITH_BACKGROUND is
...
defined. The rest goes ...
* wtools.c: ... here.
2003-10-25 21:54:55 +00:00
Pavel Roskin
67e8519191
* background.c: Remove mymsg.
2003-10-25 21:15:54 +00:00
Pavel Roskin
f75d4598eb
* util.c (msglen): Constify first argument.
...
* wtools.c (query_dialog): Constify string argments.
(create_message): New function, forked from message().
(message): Return void. Allocate memory dynamically.
* wtools.h: Eliminate D_INSERT. Adjust all users.
2003-10-25 21:12:05 +00:00
Pavel Roskin
2d33b5047e
* background.c: Replace all message stubs with a new function
...
mc_message(). Protect against strlen(MSG_ERROR). Adjust all
dependencies.
2003-10-25 19:54:24 +00:00
Pavel Roskin
16123e0850
* hotlist.c (remove_from_hotlist): Fix improper check of the
...
return value - group could be deleted after pressing ESC.
2003-10-25 18:35:18 +00:00
Pavel Roskin
636d457a87
* background.c (background_attention): Unregister task before
...
calling message() to avoid recursion.
(message_3s): Fix the number of arguments.
2003-10-25 07:19:31 +00:00
Pavel Roskin
6da33f9c8c
* command.c (enter): Don't change current_dlg to NULL. It
...
breaks repainting of the panels. Simplify logic.
2003-10-25 04:55:51 +00:00
Pavel Roskin
8c10c20881
* key.c (init_key_x11): Warning fix for gcc 3.3.2.
2003-10-25 04:19:10 +00:00
Pavel Roskin
3c39e9cb55
* fs.h (compute_namelen): Fix warning about unused argument.
...
* man2hlp.c (handle_tp_ip): Likewise.
2003-10-25 03:44:13 +00:00
Pavel Roskin
3820d62ef4
Fixed syntax reression.
2003-10-25 00:43:15 +00:00
Pavel Roskin
26328c7af6
* dialog.c (dlg_key_event): Simplify logic, return void.
2003-10-25 00:22:13 +00:00
Pavel Roskin
db8db1268c
* dialog.c: Remove duplication between two chains of dialogs.
...
* dialog.h (struct Dlg_head): Add "fullscreen" field, remove
"refresh_pushed", rename "previous_dialog" to "parent".
2003-10-24 23:57:18 +00:00
Pavel Roskin
52d81f57d7
* tree.h: Fix unneeded dependency on dialog.h.
...
* layout.h: Likewise.
2003-10-24 23:27:54 +00:00
Pavel Roskin
98950838b4
* dlg.h: Merge with ...
...
* dialog.h: ... this. Adjust all dependencies.
* dlg.c: Merge with ...
* dialog.c: ... this.
* Makefile.am (SRCS): Remove dlg.h and dlg.c.
2003-10-24 23:20:30 +00:00
Pavel Roskin
0ee63c1450
* dlg.h: Declare idle_hook here.
2003-10-24 22:51:32 +00:00
Pavel Roskin
732da2fcd9
* dialog.c: Eliminate typedef Refresh, unneeded includes.
2003-10-24 22:31:56 +00:00
Pavel Roskin
a8a7443e91
* complete.h: Move CompletionFunction definition ...
...
* complete.c: ... here.
2003-10-24 22:11:57 +00:00
Pavel Roskin
714f3ee8a7
* color.c (dealloc_color_pairs): Rename to ...
...
(done_colors): ... this.
* layout.c (done_screen): Call done_colors() here ...
* slint.c (slang_shutdown): ... but not here, as it's not S-Lang
specific.
2003-10-24 20:55:23 +00:00
Pavel Roskin
b6d7cae6d2
* cmd.c: Remove source routing code.
...
* main.c: Likewise.
2003-10-24 20:10:01 +00:00
Pavel Roskin
7a5015a5d1
* screen.c (user_file_menu_cmd): Move ...
...
* cmd.c: ... here.
* cmd.h: Remove unused declarations.
2003-10-24 18:57:43 +00:00
Pavel Roskin
9c72f81a21
* chmod.c (stat_file): Eliminate. Use mc_stat().
...
* chmod.h: Remove unneded code.
* chown.h: Likewise.
* main.c: Include achown.h.
2003-10-24 18:38:02 +00:00
Pavel Roskin
82a7b75a7b
* fileopctx.h: Define struct FileOpContext.
...
* background.h: Avoid conditional declarations.
2003-10-24 18:28:32 +00:00
Pavel Roskin
5995204d0e
* dir.h: Eliminate DIR_H_INCLUDE_HANDLE_DIRENT. Adjust all
...
callers. Remove unused code.
* dlg.h: Remove unused code.
* panel.h: Likewise.
2003-10-24 17:55:35 +00:00
Pavel Roskin
7b7d64ce1f
* dir.c (if_link_is_exe): Check mc_stat() return value.
...
Make full_name and file_entry const.
(link_isdir): Make file_entry const.
* dir.h: Adjust declarations.
2003-10-24 13:48:12 +00:00
Pavel Roskin
52045633b3
* view.c (view_handle_editkey): Fix prototype.
...
(toggle_hex_mode): Don't mess with parent's flags - it can
permanently disable Tab switch between panels.
(view): Use DLG_WANT_TAB for full screen only, unconditionally.
2003-10-24 06:06:10 +00:00
Pavel Roskin
849ef55ae7
* tree.h: Don't include treestore.h. Fix sources to include
...
treestore.h when needed.
* treestore.h: Eliminate useless typedefs.
2003-10-23 23:57:59 +00:00
Pavel Roskin
f6214df52b
* treestore.c (tree_store_start_check_cwd): Eliminate.
...
(tree_store_start_check): Make globally visible.
* dir.c (do_load_dir): Use path supplied as argument. Call
tree_store_start_check() after the directory is opened.
(do_reload_dir): Likewise.
2003-10-23 23:37:52 +00:00