Slava Zanko
15b2d19428
Search engine: fix errors with backward regex-search
2009-04-30 14:21:39 +03:00
Slava Zanko
5e08dbbe76
edit/editcmd_dialogs.c: types of search now show as radiobuttons
2009-04-30 13:46:33 +03:00
Slava Zanko
3e2c3ebb5e
Move replace confirm dialog into editcmd_dialogs.c
2009-04-30 12:45:02 +03:00
Slava Zanko
602f3c5796
Search engine: backward search now works
2009-04-30 12:35:24 +03:00
Slava Zanko
def581b24d
Search engine:
...
* add function for prepare replacement string
edit/editcmd.c:
* changes for correct replace
WARNING! replace don't fully works!
2009-04-29 18:45:21 +03:00
Slava Zanko
74c8c748b3
internal editor: change search/replace dialogs:
...
replace dialog:
* removed 'replace order' field
* removed 'scanf' and 'regex' chackboxes
* added selectbox element for choise type of search
* confirm replace and 'replace all' now radiobuttons
search dialog:
* removed 'replace order' field
* removed 'scanf' and 'regex' chackboxes
* added selectbox element for choise type of search
2009-04-29 16:13:12 +03:00
Slava Zanko
d2e62a5c87
src/wtools: add callback functions for buttons to QuickWidget structure
2009-04-29 14:07:09 +03:00
Ilia Maslakov
5e5df48951
fix: vertical insetrion UNDO on UTF-8 text.
2009-04-29 07:35:00 +00:00
Ilia Maslakov
3020c5573d
fix UNDO:
...
revert void edit_cursor_move to original.
add void edit_right_char_move_cmd (WEdit * edit)
add void edit_left_char_move_cmd (WEdit * edit)
replace edit_cursor_move call to edit_left_char_move_cmd/edit_right_char_move_cmd in edit_execute_cmd (on key press LEFT/RIGHT)
2009-04-29 07:06:27 +00:00
Ilia Maslakov
2a52039fae
fix: edit UNDO after delete, backspace on UTF-8 chars
2009-04-28 18:58:57 +00:00
Ilia Maslakov
a023d66b86
fix: incorrect UNDO in core editor on UTF-8 files.
2009-04-28 12:47:23 +00:00
Ilia Maslakov
52a2f5379e
fix: draw cursor on non-utf-8 console if a character is typically rendered in a double-width cell.
2009-04-27 12:16:53 +00:00
Ilia Maslakov
093d4c7e7a
fix: incorrect draw cursor if a character is typically rendered in a double-width cell.
...
(East Asian utf-8 chars)
2009-04-27 12:08:36 +00:00
Slava Zanko
b2442d1b1e
Reorganize source structure: move search engine files into src/search subdir
2009-04-25 10:25:13 +03:00
Slava Zanko
10b7bdb361
Project now build with:
...
make CFLAGS="-ansi -pedantic -Wall -Wextra -Werror"
WARNING! Builds wuthout samba.
2009-04-24 01:47:22 +03:00
Slava Zanko
1d18f3227e
edit/editcmd.c:
...
* Fix encoding in replace confirm dialog
* Correct handle error codes from search engine
2009-04-23 17:46:38 +03:00
Slava Zanko
ea2740059b
edit/editcmd.c: Replace now worked with new search engine (just simple mode search)
2009-04-23 17:28:07 +03:00
Slava Zanko
9db1cf46a4
Continue develop of search engine: simple search now worked
2009-04-23 15:46:06 +03:00
Slava Zanko
8fb216e732
Continue develop of mc_search module.
...
* Fix init of global variables cp_source and cp_display
* add property (mc_search_t*) search to WEdit srtucture
* start of reorganize edit/editcmd.c for new search engine
2009-04-23 14:30:14 +03:00
Andrew Borodin
4e64ee3b8d
edit/editcmd.c (edit_search_cmd): removed redundant code.
2009-04-22 06:19:20 +04:00
Ilia Maslakov
945d2183ac
fix: incorrect delete selected block if is utf-8 text
...
add param byte_delete to edit_delete, if byte_delete = 1 then one byte only delete,
but not multibyte char.
2009-04-21 22:32:30 +00:00
Ilia Maslakov
990838a226
fix: draw in core editor 8-bit locale and UTF-8 source
2009-04-21 21:27:42 +00:00
Slava Zanko
76bbeb60b2
Fixed search with different display and source charsets
2009-04-21 14:19:42 +03:00
Slava Zanko
356b501bdc
revert commit No. e19de53a06
"change addch to addstr"
2009-04-21 11:51:24 +03:00
Ilia Maslakov
e19de53a06
change addch to addstr
2009-04-20 20:18:12 +00:00
Ilia Maslakov
83c10b2f6e
fix: build without charsets
2009-04-20 19:10:33 +00:00
Ilia Maslakov
202ec6d78f
fix: incorrect show and input capitalize chars in UTF-8 locale and 8-bit source
2009-04-20 14:46:22 +00:00
Ilia Maslakov
cc54a2083b
change check S-LANG for use addch()
2009-04-20 10:56:31 +00:00
Ilia Maslakov
571ed66b76
fix: utf-8 output in editor with use ncurses
2009-04-20 10:26:14 +00:00
Slava Zanko
dd07d30c0b
Fix coredump with jumps to function definition/declaration
2009-04-20 13:35:09 +03:00
Ilia Maslakov
78b7678845
Merge branch 'm-utf-8' of ssh://angel_il@midnight-commander.org:2222/git/mc into m-utf-8
2009-04-20 09:03:04 +00:00
Ilia Maslakov
4725fe329c
fix: edit in 8-bit locale UTF-8 source
2009-04-20 09:01:47 +00:00
Slava Zanko
303cec8cb6
Supress compiler warnings. Now able to compile project with
...
make CFLAGS=-Werror
2009-04-20 11:10:06 +03:00
Ilia Maslakov
7494db39ed
clear some build warnings
2009-04-20 07:30:32 +00:00
Ilia Maslakov
9d855b3253
fix: build without HAVE_CHARSET
2009-04-20 05:51:32 +00:00
Ilia Maslakov
a4b354f99c
fix: incorret draw files in 8-bit codeset after recode
2009-04-19 20:28:00 +00:00
Ilia Maslakov
b87edfdc26
fix: input in 8-bit locales
2009-04-19 12:18:18 +00:00
Ilia Maslakov
d8175b3e6b
fix: incorrect input
2009-04-18 14:50:05 +00:00
Slava Zanko
6568cad9df
Fixies for search stuff in editor.
...
src/charsets.c:
* fix error with recoding string for display
edit/editcmd.c:
* fix core dump if search dialog calls some multiple times
* fix memory leak
2009-04-17 18:08:51 +03:00
Slava Zanko
95e2fb90ef
Fix search with 8-bit system codepage in utf-8 text codepage
2009-04-17 17:05:19 +03:00
Slava Zanko
ea30fa7d88
Merge branch 'm-utf-8' of ssh://www.midnight-commander.org:2222/git/mc into m-utf-8
...
* 'm-utf-8' of ssh://www.midnight-commander.org:2222/git/mc:
fix: incorrect convert_from_utf_to_current_c, convert_from_utf_to_current
2009-04-17 15:02:41 +03:00
Slava Zanko
3802929f94
edit/editcmd.c: Fixed search and replace with scanf-search
2009-04-17 15:01:25 +03:00
Ilia Maslakov
137e3e7259
fix: incorrect convert_from_utf_to_current_c, convert_from_utf_to_current
2009-04-17 10:27:59 +00:00
Slava Zanko
0730efa2fc
Merge branch 'm-utf-8' of ssh://www.midnight-commander.org:2222/git/mc into m-utf-8
...
* 'm-utf-8' of ssh://www.midnight-commander.org:2222/git/mc:
fix by andrew_b uninitialised tool->compose.
fix incorrect draw utf-8 text in 8-bit locale
fix some warnings
add convert_from_utf_to_current_c, fix little warnings
add utf8_display global variable, if display bits select utf-8 utf8_display = 1
add more convertion before draw text
change charbuf to char from unsigned char
add: convert input in utf locale to needle
fix incorrect convertion from utf to display CP
fix: width utf buffer
add in core viewer codepage selection from list
fix: editor status bar
fix: edit_get_prev_utf segfault, add compare str with start of buf
Conflicts:
edit/edit.h
2009-04-17 11:52:20 +03:00
Slava Zanko
1e5a201abd
Temporary commit. Half-fix searching.
...
Not fixed search by regexp.
2009-04-17 11:46:06 +03:00
Ilia Maslakov
8767909493
fix incorrect draw utf-8 text in 8-bit locale
2009-04-17 06:17:37 +00:00
Ilia Maslakov
42eba5c18c
fix some warnings
2009-04-16 21:28:02 +00:00
Ilia Maslakov
d4148989ed
add more convertion before draw text
2009-04-16 21:17:58 +00:00
Ilia Maslakov
c03c4de5cc
change charbuf to char from unsigned char
2009-04-16 21:14:48 +00:00
Ilia Maslakov
9cb41f7b43
Merge branch 'm-utf-8' of ssh://angel_il@midnight-commander.org:2222/git/mc into m-utf-8
2009-04-16 16:38:05 +00:00