Ticket #3026: Find File: "All charsets" options don't work.

(mc_search_prepare): use cp_display not cp_source to convert text to all
available charsets.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/search/search.c: cosmetics.

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

* 3026_findfile_all_charsets:
  lib/search/search.c: cosmetics.
  Ticket #3026: Find File: "All charsets" options don't work.
Ticket #2706: hex viewer: continue search doesn't work.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Don't adjust viewer parameters twice after search in the hex mode.

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

* 2706_hexview_search_continue:
  Don't adjust viewer parameters twice after search in the hex mode.
  Ticket #2706: hex viewer: continue search doesn't work.
Ticket #3020: segfault on creating new file in external editor

Fixes for compiling code without warnings and errors when the --disable-editor option is specified

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Fix bug with segfault when we tried to create new file in an external editor (by pressing shift-F4)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
--with-edit: rename to --with-internal-edit.

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

* 3020_external_editor_segfault:
  --with-edit: rename to --with-internal-edit.
  Fix bug with segfault when we tried to create new file in an external editor (by pressing shift-F4)
  Ticket #3020: segfault on creating new file in external editor
Ticket #2163: rotating dash is not removed when mc finishes reading the directory

...or when other long aperation is finished.

(rotate_dash): add argument to show/hide dash. Move dash to the corner
of the right/top panel from corner of the screen.

Thanks Egmont Koblinger for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(find_rotate_dash): invert the boolean argument

...to be consistent with the new rotate_dash() behavior and to be
intuitive.

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

* 2163_rotating_dash:
  (find_rotate_dash): invert the boolean argument
  Ticket #2163: rotating dash is not removed when mc finishes reading the directory
Ticket #1743: remove limit of file size in mcedit.

Initial commit: refactoring:
  * (edit_load_file_fast): always load whole file.
  * (edit_load_file): don't ignore result of edit_load_file_fast().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(edit_move_updown): avoid extra search of multi-byte character start.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Start of edit buffers refactoring.

Move buffers to separate class.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Refactoring of init/clean editor buffer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Refactoring editor buffer API of bytes/symbols get.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(edit_buffer_read_file): new editor buffer API.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(edit_buffer_read_file): refactoring: return number of read bytes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>