Commit 253461f9 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

layout: Optimize tab handling

We don't need to iterate the entire tab array
every time, we just continue from the previous
tab stop position.
parent 169d411a
Pipeline #338661 passed with stages
in 11 minutes and 36 seconds
......@@ -3541,7 +3541,7 @@ shape_tab (PangoLayoutLine *line,
ensure_tab_width (line->layout);
space_width = line->layout->tab_width / 8;
for (i = 0; ; i++)
for (i = tab_state->index; ; i++)
{
gboolean is_default;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment