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
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
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
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
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
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
a9440f0320
* main.c (update_xterm_title_path): Use is_printable().
2003-01-27 17:16:11 +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
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
f2fb0f85e2
Remove dead code for setting the titlebar.
2002-12-27 23:23:34 +00:00
Pavel Roskin
818d127652
Add comments.
2002-12-26 16:38:25 +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
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
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
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
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
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
325e5af99d
* main.c (make_panels_dirty): Preserve the cursor position.
2002-12-19 23:35:39 +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
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
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
c0cd0ff9ec
* main.c: Eliminate finish_program variable - mc can now exit
...
immediately.
2002-11-20 15:54:33 +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
5cb2ef30f3
Fix duplicate declarations.
2002-11-15 06:38:55 +00:00
Pavel Roskin
bb71be884a
Fix "edit" entries in the "Command" menu.
2002-11-14 23:00:50 +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
4af124c573
Include edit.h.
2002-11-13 09:30:57 +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
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
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
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
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
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
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
d3f0a2f61b
Remove spaces around "Error" and "Warning" together with their translations.
...
Also remove spaces from "Quit" and "Search", but leave alone the
translations, that already have them without spaces.
2002-10-21 04:13:49 +00:00
Andrew V. Samoilov
2f4a67be36
Remove unused enum.
...
(do_compatibility_move): Rename ~/.mc.ext to ~/.mc/bindings.
2002-10-17 10:32:36 +00:00
Pavel Roskin
f367374054
Add FIXME.
2002-10-13 23:12:06 +00:00
Pavel Roskin
01d8a125c8
* main.c (print_color_usage): Update list of keywords for file
...
types. Add a notice for translators.
2002-10-13 22:57:52 +00:00
Andrew V. Samoilov
ca70ee44c5
* popt.h: Adjust poptHelpOptions[] declaration.
...
* popthelp.c: Replace POPT_ with _ for visible strings.
(singleOptionHelp): Eliminate format array.
(poptHelpOptions): Make const.
(poptPrintHelp): Return width of left column.
* main.c (print_mc_usage): Use width from poptPrintHelp() for "+number".
2002-10-09 15:27:01 +00:00
Pavel Roskin
da7e82d253
Global removal of RCS Id: flags.
2002-09-26 23:13:45 +00:00