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
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
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
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
83c10b2f6e
fix: build without charsets
2009-04-20 19:10:33 +00:00
Ilia Maslakov
4725fe329c
fix: edit in 8-bit locale UTF-8 source
2009-04-20 09:01:47 +00: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
42eba5c18c
fix some warnings
2009-04-16 21:28:02 +00:00
Ilia Maslakov
4374fd4ea5
fix: edit_get_prev_utf segfault, add compare str with start of buf
2009-04-15 19:07:46 +00:00
Ilia Maslakov
13986ea0af
fix: with status_string on utf-8 char
2009-04-15 18:14:17 +00:00
Ilia Maslakov
960b1ef89d
fix move backward and backspace.
2009-04-15 13:56:19 +00:00
Slava Zanko
ca7427cd35
edit/{editcmd.c,edit.h,edit.c}: remove catstrs() and freestrs() functions
...
These functions fully replaced with g_strconcat ()
WARNING! This just stupid replace. Some parts of code need to usage
concat_dir_and_file() function instread of g_strconcat ()
2009-04-14 15:12:36 +03:00
Ilia Maslakov
21c88729a4
fix edit_delete, edit_backspace now work with utf-8
2009-04-14 06:07:35 +00:00
Ilia Maslakov
4411af46bb
fix incorrect move cursor after left/right key pressed
2009-04-14 05:56:02 +00:00
Ilia Maslakov
b6ae0a2479
fix cursor in editor on utf-8 files
2009-04-13 15:33:21 +00:00
Ilia Maslakov
95edc18aa8
add char charbuf[], int charpoint for multibyte input
...
add edit_get_byte_ptr for get pointer to edit current position in buffer
add edit_get_buf_ptr pointer in start of edit buffer
fix edit_translate_key for multibyte input
add
2009-04-13 15:19:06 +00:00
Ilia Maslakov
13f13c1fb0
fix incorrect edit_draw_this_line, edit_get_utf.
...
utf-8 text now showed correct
2009-04-13 09:28:07 +00:00
Ilia Maslakov
f45e7d1dc6
fix: edit_draw_this_line iterators. iterators += utf8char_width
...
fix: edit.c edit_get_utf correct calculate utf8char width
2009-04-13 06:55:43 +00:00
Ilia Maslakov
d29c5d6d5f
reworked: edit_get_utf return int value is utf-8 char, char_width
2009-04-12 19:16:52 +00:00
Ilia Maslakov
b5c4a9ddf2
add str_isutf8 return 1 if codeset_name is utf8 or utf-8
...
add unsigned int utf8:1 to struct WEdit if utf8 then file multibute codeset
2009-04-09 14:23:08 +00:00
Ilia Maslakov
36bf010af6
add function edit_get_utf_char
2009-04-09 12:04:30 +00:00
Ilia Maslakov
f845e4b569
revert to strlen in edit_find_filter
2009-04-06 12:45:35 +00:00
Ilia Maslakov
bfa9c961ca
replace isupper to g_ascii_isupper
2009-04-06 11:04:02 +00:00
Ilia Maslakov
87a891a54c
replace islower to g_ascii_islower
...
replace tolower to g_ascii_tolower
2009-04-06 10:58:33 +00:00
Ilia Maslakov
b0729f75fb
replace isalpha to g_ascii_isalpha
...
replace strlen to str_term_width1
add #include "strutil.h" if need
2009-04-06 10:31:12 +00:00
Ilia Maslakov
3a161f9576
fix: problem when flag Persistent selection swiched off then text not marked
...
by F3 + arrows
2009-03-31 10:39:00 +00:00
Ilia Maslakov
a8eb299506
Fix: defult value of option_persistent_selectionsis, set "yes" by default.
2009-03-28 09:46:07 +00:00
Ilia Maslakov
a443945748
replace "Persistent blocks" to "Persistent selection" in
...
edit/edit.c, edit/edit.h, edit/editoptions.c, src/setup.c
2009-03-28 00:35:25 +00:00
Slava Zanko
2390c46d06
Rename '*persistent_block*' to '*persistent_selection*' for more sence.
...
Thanks to Ossi
2009-03-27 22:48:31 +02:00
Ilia Maslakov
3cc9aac553
Add load/save option editor_persistent_block to ~/.mc/ini;
...
Add option editor_persistent_block to Options/General dialog;
Make persistent/nonpersistent blocks if mcedit;
Enlarged height of Options/General dialog from 17 to 19 lines;
2009-03-26 11:32:18 +00:00
Ilia Maslakov
f312a93332
experemental commit
2009-03-25 21:31:07 +00:00
Ilia Maslakov
20c769b063
Add stack navigation structure. Add hotkeys A-'-' backward A-'=' forward navigation to files.
...
add edit/etags.c edit/etags.h
2009-02-25 21:55:35 +00:00
Mikhail S. Pobolovets
da3b76b8d7
Merge branch '176_lzma'
2009-02-21 12:23:50 +02:00
Slava Zanko
e54f318cef
Completely removed MHL stuff
...
Changed all source files relative to remove MHL
Some string-related functions moved into src/util.c
This stable fix.
2009-02-06 14:01:28 +02:00
Patrick Winnertz
3b8f37b99e
Moved some functions out of mhl into src/util.c
...
This commit moves the mhl_str_concat_dir_and_file back into src/util.c whitout changing atm the functionality.
Please note that this is an incomplete fix and needs to be partially enhanced in order to keep the full functionality with glib.
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-06 11:17:03 +01:00
Patrick Winnertz
1c287d798d
First bunch of mhl_mem_free removal patches
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:36:58 +01:00
Patrick Winnertz
3d0f9e419a
Reverted some more GString removals. (See f235b1976e
)
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:22:08 +01:00
Patrick Winnertz
155fd328a4
Revert second bunch of mhl patches (see 9b9cab5874
)
...
This reintroduce GString again and drop the use of mhl_mem_free in some files
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:18:38 +01:00
Enrico Weigelt, metux IT service
a6a9c1c147
fixed edit.c
2009-02-04 21:16:01 +01:00
Enrico Weigelt, metux IT service
a5ba278729
merged in lzma patch from mandriva
2009-02-04 21:16:00 +01:00
Enrico Weigelt, metux IT service
9b9cab5874
manually merged 234_remove_g_string
2009-02-02 22:39:12 +01:00
Enrico Weigelt, metux IT service
8b38cf44da
manully merged 227_replace_g_free
2009-02-02 22:34:05 +01:00
Enrico Weigelt, metux IT service
f235b1976e
replaced GString stuff by static buffers
2009-01-31 21:55:51 +01:00
Enrico Weigelt, metux IT service
54d6ec88dc
replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file()
2009-01-31 16:51:58 +01:00