Ticket #3050: don't use bright colors as background ones.

Only following colors can be used in 16-color skins:
black, red, green, brown, blue, magenta, cyan, lightgray.

Following colors are replaced in 16-color skins:

white -> lightgray
yellow -> brown
brightgreen -> green

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '3050_bg_colors'

* 3050_bg_colors:
  Ticket #3050: don't use bright colors as background ones.
Fix indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Ticket #3076: copy/move doesn't work if num_history_items_recorded=0.

How to reproduce:
1. Set num_history_items_recorded=0 in my $HOME/.config/mc/ini
2. Run mc.
3. Press F5 to copy and then enter.
Result: nothing happens.

Solution: refactoring of initial text usage in input line.
Use def_text to fill WInput:buffer when WInput is created.
Then overwrite WInput::buffer content from history if history usage
is enabled.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(input_update): don't do anything if widget is unowned or is in inactive dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Remove WInput::field_width. Use Widget::cols instead.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Refactoring of WInput history.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '3076_num_history_items_recorded_0'

* 3076_num_history_items_recorded_0:
  Refactoring of WInput history.
  Remove WInput::field_width. Use Widget::cols instead.
  (input_update): don't do anything if widget is unowned or is in inactive dialog.
  Ticket #3076: copy/move doesn't work if num_history_items_recorded=0.
Ticket #3084: (dlg_init): fix order of messages sent to widgets during dialog initialization.

If checkbox is the first focusable widget in a dialog, it taken the MSG_DRAW
message after MSG_FOCUS one and therefore wasn't highlighted.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '3084_dlg_highlight_first_widget'

* 3084_dlg_highlight_first_widget:
  Ticket #3084: (dlg_init): fix order of messages sent to widgets during dialog initialization.