Commit d1c14de9 authored by Juri Linkov's avatar Juri Linkov

Small fix for text-mode display

parent 1598de6e
Pipeline #3042 failed with stage
in 5 minutes and 51 seconds
......@@ -13110,17 +13110,15 @@ display_tab_bar (struct window *w)
/* Display all items of the tab bar. */
items = it.f->tab_bar_items;
for (i = 0; i < ASIZE (items); i += 11)
for (i = 0; i < it.f->n_tab_bar_items; ++i)
{
Lisp_Object string;
/* Stop at nil string. */
string = AREF (items, i + 3);
string = AREF (items, i * TAB_BAR_ITEM_NSLOTS + TAB_BAR_ITEM_CAPTION);
if (NILP (string))
break;
/* string = build_string ("Test 4"); */
/* Display the item, pad with one space. */
if (it.current_x < it.last_visible_x)
display_string (NULL, string, Qnil, 0, 0, &it,
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