Ilia Maslakov
3236fe285c
fix: segfault in 'edit_save_confirm_cmd', g_free non allocated memory
2009-04-14 20:41:41 +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
7d7560deea
Change print_to_widget, edit_draw_this_line to use struct line_s line[].
...
Extract color attibutes from char to lines->style.
Add definition struct line_s:
struct line_s {
unsigned int ch; <- textchar
unsigned int style; <- color attr
};
2009-04-12 08:09:00 +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
8725fa60a8
add to status bar source codepage
2009-04-09 08:40:59 +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
5be16e2a0b
replace name_trunc to str_trunc
2009-04-06 10:38:35 +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
3b5e2c052f
Merge branch 'utf-8' into master
...
resolve conflicts:
configure.ac
src/complete.c
src/file.c
src/layout.c
src/main.c
src/menu.c
src/screen.c
src/util.c
src/widget.c
src/widget.h
2009-04-04 19:50:46 +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
f22b5d16b5
Add load/save option editor_persistent_block to ~/.mc/ini
...
Add option editor_persistent_block to Options/General dialog
enlarged Options/General dialog Height from 17 to 19 lines
2009-03-26 09:21:43 +00:00
Ilia Maslakov
f312a93332
experemental commit
2009-03-25 21:31:07 +00:00
Ilia Maslakov
e7b82fe9f3
add static in parse_define
2009-03-10 20:11:51 +00:00
Ilia Maslakov
70be4fbf7b
fix err in Makefile.am. Change etats.h to etags.h
2009-03-10 20:08:30 +00:00
Ilia Maslakov
f3dcf1b3aa
replace malloc to g_malloc.
...
fix some leak (thx andrew_b)
define TAGS_NAME, MAX_WIDTH_DEF_DIALOG vars
2009-03-06 15:28:54 +00:00
Slava Zanko
6c39432c98
edit/etags.c: Use function 'g_build_filename' instread of 'g_strdup_printf' for making path to file
2009-03-05 12:48:47 +02:00
Slava Zanko
00567b61b2
etags: make new type 'etags_hash_t'
2009-03-05 12:31:16 +02:00
Ilia Maslakov
474d22d6c9
change width listbox, change output format
2009-03-05 12:31:16 +02:00
Ilia Maslakov
4be6c1c2c5
some little bug fix
2009-03-05 12:31:16 +02:00
Ilia Maslakov
da66b3154b
small bug fix struct name
2009-03-05 12:31:15 +02:00
Ilia Maslakov
2a038f109a
TAGS parser full reworked, add hungry search algorithm, change etags hash struct
2009-03-05 12:31:10 +02:00
Slava Zanko
8abf76df7c
edit/editcmd.c
...
* changed searching algorithm of 'TAGS' file
* changed #include "etags.h" to "../edit/etags.h" for building outside of sources tree
edit/etags.c:
* apply template from maint/template.c file
* rename all functions with prefix etags_*
* make function "etags_get_pos_from" in file-scope visibility
edit/etags.h:
* added logic block "#ifndef ... #define ... #endif" for correctly processing of header file
* remove declaration of file-scope function etags_get_pos_from (ex. get_pos_from)
2009-03-02 16:43:22 +02:00
Ilia Maslakov
ffca67e3cb
one word bug fix
2009-02-27 22:07:01 +00:00
Ilia Maslakov
889233a7dd
add canonicalize_pathname for displayed files in list, replace get curren dir from panel->cwd to g_get_current_dir()
2009-02-27 21:31:30 +00:00
Ilia Maslakov
351f42ac24
add recursive search file TAGS
2009-02-26 20:50:58 +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
589ffd0b10
Use g_snprintf instead of snprintf as we switch back to glib
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:49:00 +01:00
Patrick Winnertz
ae987b923e
Reverted the use of bool in favour of gboolean
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:46:07 +01:00
Patrick Winnertz
281652cc23
Use FALSE/TRUE in favour of false/true (reverts 4fcf4e9685
)
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:41:40 +01:00
Patrick Winnertz
d84586ba82
Reverted the use of mhl_str_dup and use g_strdup instead.
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:40:32 +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