mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 11:13:12 +02:00
core: fix display of combining chars (patch from Nei) (bug #37775)
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
WeeChat ChangeLog
|
||||
=================
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
v0.4.0-dev, 2012-11-27
|
||||
v0.4.0-dev, 2012-11-30
|
||||
|
||||
|
||||
Version 0.4.0 (under dev!)
|
||||
--------------------------
|
||||
|
||||
* core: fix display of combining chars (bug #37775)
|
||||
* core: display default values for changed config options in output of /set
|
||||
* core: stop cmake if gcrypt lib is not found (bug #37671)
|
||||
* core: add incomplete mouse events "event-down" and "event-drag" (task #11840)
|
||||
|
||||
@@ -334,7 +334,7 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window,
|
||||
}
|
||||
|
||||
size_on_screen = utf8_char_size_screen (utf_char);
|
||||
if (size_on_screen > 0)
|
||||
if (size_on_screen >= 0)
|
||||
{
|
||||
if (hide_chars_if_scrolling
|
||||
&& (x_with_hidden < bar_window->scroll_x))
|
||||
|
||||
@@ -391,7 +391,7 @@ gui_chat_display_word_raw (struct t_gui_window *window, struct t_gui_line *line,
|
||||
{
|
||||
return chars_displayed;
|
||||
}
|
||||
if (display_char && (size_on_screen > 0))
|
||||
if (display_char && (size_on_screen >= 0))
|
||||
{
|
||||
if (!simulate)
|
||||
{
|
||||
|
||||
+1
-1
@@ -242,7 +242,7 @@ gui_chat_string_real_pos (const char *string, int pos)
|
||||
real_pos = string;
|
||||
real_pos_prev = string;
|
||||
ptr_string = string;
|
||||
while (ptr_string && ptr_string[0] && (pos > 0))
|
||||
while (ptr_string && ptr_string[0] && (pos >= 0))
|
||||
{
|
||||
ptr_string = gui_chat_string_next_char (NULL, NULL,
|
||||
(unsigned char *)ptr_string,
|
||||
|
||||
Reference in New Issue
Block a user