* DEV_mcview2: (27 commits)
Implemented interruptable long-distance movements.
fix: <no translation> behaviour
Change prototype of mcview_get_byte() function (and al related functions)
fix: uninitialized variables
fix: header paths
Added missed includes. Fixed OFFSETTYPE_MAX calculation.
Cleanup of code. Indentation.
Ticket #1530
* add 'Whole words' option into the viewer 'Search' dialog
Added functions for work with nroff'ed text. Added search across nroff'ed text
Fixies with search in HEX mode view:
Search in plain text (not nroff'ed) now worked.
Cleanup of code. Reidentation.
Ticket #1431 (Missing translation in view.c ButtonBar?)
Avoid warning 'format not a string literal and no format arguments'.
Fixed memory leak after geting list of search types.
Move search dialog from actions_cmd.c into dialogs.c
Changes for correctly work after rebase to master (master with HACK_tty).
fix: draw nroff text
Move inline functions from internal.h into new file inlines.h
...
There a lot of time required to move to the end of large
binary file. Now such movement can be interrupted by
Ctrl-C key.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
from
int mcview_get_byte (mcview_t *, off_t)
into
gboolean mcview_get_byte (mcview_t, off_t, int *)
Now splitted return code(success/fail) and readed value from datasource value.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
UseCase:
* rename any patch file into patch_file.lzma_tar.patch.gz for example
* try to enter into renamed file (press Enter key on a file in panel)
* You'll see error message 'sh: lzma: command not found'
Fix issue:
* Add -b key into call of 'file' utility (to avoid filename in output)
* better parse 'file -b' output
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Fixed Case-isentetive search with [ranges].
Reason of bug:
content_pattern was initialized via str_create_search_needle() function (from src/strutils.c)
This function convert string to lowercase if case_sentitive is off. Therefore string
'some_string[^a-zA-Z]' was transform into 'some_string[^a-za-z]'
Fix issue:
replace call of str_create_search_needle() function to g_strdup()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
fix: backward search. When the cursor set on the begin of the word,
search found this word, but should not.
Signed-off-by: Ilia Maslakov <il.smind@google.com>
src/tty/key.c (get_modifier): comparison between pointer and integer
src/tty/win.c: missed #include <stdlib.h>
src/dialog.c (add_widget): control reaches end of non-void function
src/widget.c: missed #include "layout.h"
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Fixed Help window to be resizable.
Fixed draw of Help button bar.
Moved WButtonBar widget from dialog.c to dialog.h.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
thanx Daniel Borca <dborca@yahoo.com> for the patch
* fix special_chars in regex.c
* add whole_words into mc_search_struct
* add 'Whole words' into 'Search', 'Replace' 'File find' dialogs
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>