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
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
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
137e3e7259
fix: incorrect convert_from_utf_to_current_c, convert_from_utf_to_current
2009-04-17 10:27:59 +00:00
Ilia Maslakov
8767909493
fix incorrect draw utf-8 text in 8-bit locale
2009-04-17 06:17:37 +00:00
Ilia Maslakov
d4148989ed
add more convertion before draw text
2009-04-16 21:17:58 +00:00
Ilia Maslakov
38c7e229d5
fix: editor status bar
2009-04-15 20:08:44 +00:00
Ilia Maslakov
13986ea0af
fix: with status_string on utf-8 char
2009-04-15 18:14:17 +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
8725fa60a8
add to status bar source codepage
2009-04-09 08:40:59 +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
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
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
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
e4a4f77ac2
replaced g_snprintf() by snprintf()
2009-02-01 20:03:28 +01:00
Enrico Weigelt, metux IT service
15d7d47c15
replaced g_free() by mhl_mem_free()
2009-01-30 19:28:35 +01:00
Patrick Winnertz
537b55b46e
Move this var into if condition as it's only needed there
2009-01-14 23:28:35 +01:00
Pavel Tsekov
2f3df3af4e
* edit/bookmark.c: Update copyright notice.
...
* edit/edit.c: Likewise.
* edit/editcmd.c: Likewise.
* edit/editdraw.c: Likewise.
* edit/editkeys.c: Likewise.
* edit/editlock.c: Likewise.
* edit/editmenu.c: Likewise.
* edit/editoptions.c: Likewise.
* edit/editwidget.c: Likewise.
* edit/syntax.c: Likewise.
* src/background.c: Likewise.
* src/boxes.c: Likewise.
* src/complete.c: Likewise.
* src/execute.c: Likewise.
* src/ext.c: Likewise.
* src/file.c: Likewise.
* src/filegui.c: Likewise.
* src/fileopctx.c: Likewise.
* src/find.c: Likewise.
* src/hotlist.c: Likewise.
* src/key.c: Likewise.
* src/keyxdef.c: Likewise.
* src/layout.c: Likewise.
* src/learn.c: Likewise.
* src/listmode.c: Likewise.
* src/main.c: Likewise.
* src/panelize.c: Likewise.
* src/slint.c: Likewise.
* src/textconf.c: Likewise.
* src/tree.c: Likewise.
* src/treestore.c: Likewise.
* src/tty.c: Likewise.
* src/util.c: Likewise.
* src/utilunix.c: Likewise.
* src/view.c: Likewise.
* src/widget.c: Likewise.
* src/wtools.c: Likewise.
* src/x11conn.c: Likewise.
* vfs/cpio.c: Likewise.
* vfs/extfs.c: Likewise.
* vfs/fish.c: Likewise.
* vfs/ftpfs.c: Likewise.
* vfs/gc.c: Likewise.
* vfs/mcfs.c: Likewise.
* vfs/mcserv.c: Likewise.
* vfs/smbfs.c: Likewise.
* vfs/tar.c: Likewise.
2007-09-25 15:33:35 +00:00
Pavel Tsekov
23361694b6
* src/background.c: Use the correct form of FSF's name in the copyright
...
notice.
* src/boxes.c: Ditto.
* src/complete.c: Ditto.
* src/execute.c: Ditto.
* src/ext.c: Ditto.
* src/file.c: Ditto.
* src/filegui.c: Ditto.
* src/fileopctx.c: Ditto.
* src/fileopctx.h: Ditto.
* src/find.c: Ditto.
* src/hotlist.c: Ditto.
* src/key.c: Ditto.
* src/keyxdef.c: Ditto.
* src/layout.c: Ditto.
* src/learn.c: Ditto.
* src/listmode.c: Ditto.
* src/main.c: Ditto.
* src/panelize.c: Ditto.
* src/slint.c: Ditto.
* src/textconf.c: Ditto.
* src/tree.c: Ditto.
* src/treestore.c: Ditto.
* src/tty.c: Ditto.
* src/util.c: Ditto.
* src/utilunix.c: Ditto.
* src/view.c: Ditto.
* src/widget.c: Ditto.
* src/wtools.c: Ditto.
* src/x11conn.c: Ditto.
* vfs/cpio.c: Ditto.
* vfs/extfs.c: Ditto.
* vfs/fish.c: Ditto.
* vfs/ftpfs.c: Ditto.
* vfs/gc.c: Ditto.
* vfs/mcfs.c: Ditto.
* vfs/mcserv.c: Ditto.
* vfs/smbfs.c: Ditto.
* vfs/tar.c: Ditto.
* vfs/undelfs.c: Ditto.
* vfs/utilvfs.c: Ditto.
* vfs/vfs.c: Ditto.
* edit/bookmark.c: Ditto.
* edit/edit.c: Ditto.
* edit/edit.h: Ditto.
* edit/editcmd.c: Ditto.
* edit/editdraw.c: Ditto.
* edit/editkeys.c: Ditto.
* edit/editlock.c: Ditto.
* edit/editmenu.c: Ditto.
* edit/editoptions.c: Ditto.
* edit/editwidget.c: Ditto.
* edit/syntax.c: Ditto.
2007-09-24 09:28:32 +00:00
Pavel Tsekov
139e48183f
* src/color.h: Add a new color pair.
...
* src/color.c: Likewise.
* edit/editdraw.c (print_to_widget): Make tabs and trailing whitespace
characters visible.
(edit_draw_this_line): Likewise.
2007-08-27 12:06:02 +00:00
Leonard den Ottolander
59e59d9e3b
* edit/editdraw.c (edit_draw_this_line): Remove unused variable book_mark.
2006-12-04 22:44:50 +00:00
Roland Illig
ad9acbde44
Moved printwstr() from src/slint.c to edit/editdraw.c.
2005-09-05 02:14:29 +00:00
Roland Illig
ad8b819a48
* editdraw.c (render_edit_text): Removed unused variables.
2005-08-15 21:38:33 +00:00
Roland Illig
dee3850ee4
* editdraw.c (render_edit_text): Removed unused variable.
2005-08-15 21:37:34 +00:00
Pavel Roskin
1f60f44145
Update postal address of Free Software Foundation.
2005-05-27 03:35:10 +00:00
Leonard den Ottolander
8994b8bbec
Added casts on 2 parameters to g_snprintf.
2005-04-27 21:02:59 +00:00
Roland Illig
ecc08f6c60
* edit.h: Removed unnecessary #include directives ...
...
* *.c: ... and added them here.
2005-02-22 17:00:36 +00:00
Roland Illig
e501886d58
* editdraw.c: Renamed redraw_labels to buttonbar_redraw.
...
* editwidget.c: Likewise. Renamed define_label_data to
buttonbar_set_label_data.
2005-02-08 09:50:16 +00:00
Roland Illig
e5e3a8f87d
* editcmd.c: Fixed whitespacing issues.
...
* editdraw.c: Likewise.
* syntax.c: Likewise.
2005-02-07 20:32:17 +00:00
Roland Illig
05d2881a71
* *.c: Removed trailing whitespace.
2005-02-07 07:31:19 +00:00
Roland Illig
020455853d
* editdraw.c (edit_status): Changed some variables from size_t to
...
int to avoid GCC warnings.
2005-01-28 01:34:48 +00:00
Roland Illig
067e407cf7
* editdraw.c (edit_status): Fixed drawing bug with ncurses.
2005-01-27 22:14:58 +00:00
Andrew V. Samoilov
bfee231c11
* editdraw.c (edit_status): Don't output extra characters on the
...
status line.
(print_to_widget): Don't use addch() with negative offset to skip
over excessive columns. Output only those columns that should be
displayed on the screen.
2004-11-10 14:11:27 +00:00
Roland Illig
63cae58f20
* editdraw.c (edit_status): Expand the filename field in the status
...
line to 16 characters even if the actual filename is shorter.
2004-10-23 13:14:14 +00:00
Roland Illig
283441db92
* editdraw.c (status_string): Removed unused parameter.
...
(edit_status): Rewrote to allow longer filenames to be displayed
completely whenever possible.
2004-09-24 11:13:11 +00:00
Pavel Roskin
8bc40b44f0
Fix includes not to rely on $(top_srcdir) being in the include path.
2003-10-29 08:54:22 +00:00
Pavel Roskin
729a855b29
* edit-widget.h: Stop misusing "unsigned char" for boolean.
...
Eliminate have_frame - it's unused. Adjust all dependencies.
2003-07-08 23:46:01 +00:00
Pavel Roskin
aaf569bd48
* edit.h: Don't inclide malloc.h. Use g_malloc() and g_free()
...
instead. Adjust all dependencies.
2002-12-15 18:55:53 +00:00
Pavel Roskin
5c0e8be6ca
"Privatize" font-related defines.
2002-11-30 19:59:02 +00:00
Pavel Roskin
18de4488e3
* edit-widget.h: Move typedef WEdit and file names ...
...
* edit.h: ... here. Don't include edit-widget.h. Adjust all
dependencies.
2002-11-29 03:01:06 +00:00