mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-20 04:30:18 +00:00
xtext: Fix poor performance with nick indent enabled
This fixes xtext re-rendering multiple times when the indent width is not sufficient Fixes #1364 Closes #1367
This commit is contained in:
@@ -4671,7 +4671,9 @@ gtk_xtext_append_indent (xtext_buffer *buf,
|
|||||||
space = 0;
|
space = 0;
|
||||||
|
|
||||||
/* do we need to auto adjust the separator position? */
|
/* do we need to auto adjust the separator position? */
|
||||||
if (buf->xtext->auto_indent && ent->indent < MARGIN + space)
|
if (buf->xtext->auto_indent &&
|
||||||
|
buf->indent < buf->xtext->max_auto_indent &&
|
||||||
|
ent->indent < MARGIN + space)
|
||||||
{
|
{
|
||||||
tempindent = MARGIN + space + buf->xtext->space_width + left_width;
|
tempindent = MARGIN + space + buf->xtext->space_width + left_width;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user