Command line history button bugs



It's a good thing to read help and manuals. I always wanted to know what the [^] thing at the bottom of the screen was for. I know the FXX keys so I always have the keybar invisible. In such way, the history button does nothing; you can right click on it as manay time as you like.

The button has a weird behaviour when switching on and off things.

a) When configured with hidden menu and key bars, MC starts with the command line history button at the bottom right corner of the screen/window.
If the keybar is made visible, the ']' piece stays there.
If the keybar is hidden again whe have the ']]' piece twice
as the button is moved left.
b) With hidden keybar, that button is useless. It seems to me that the keybar is still getting all mouse events.

No clue for the first one. For the second one I tried to reduce the keybar size when it's invisible and the command prompt is there. Just a dirty hack... :(

--- layout.c Mon Aug 5 18:06:44 2002
+++ /home/dmartin/src/mc-4.5.99a.new/src/layout.c Fri Aug 9 00:36:49 2002
@@ -676,7 +676,7 @@
widget_set_size (&the_prompt->widget, LINES, COLS, 0, 0);
}

- widget_set_size (&the_bar->widget, LINES-1, 0, 1, COLS);
+ widget_set_size (&the_bar->widget, LINES-1, 0, 1, COLS-((command_prompt && !keybar_visible) ? 4 : 0));
the_bar->visible = keybar_visible;

/* Output window */

*8-) David


Join Excite! - http://www.excite.com
The most personalized portal on the Web!

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]