- mvwaddch(editw, TABLINE, sum, UI_ULCORNER_CHAR);
- mvwaddch(editw, TABLINE, sum + 1, UI_LBOXLINE_CHAR);
- mvwaddstr(editw, TABLINE, sum + 2, gettext(tab_names[i]));
- mvwaddch(editw, TABLINE, sum + width - 3, UI_RBOXLINE_CHAR);
- mvwaddch(editw, TABLINE, sum + width - 2, UI_URCORNER_CHAR);
+ mvwaddch(editw, TABLINE, x_pos, UI_ULCORNER_CHAR);
+ mvwaddch(editw, TABLINE, x_pos + 1, UI_LBOXLINE_CHAR);
+ mvwaddstr(editw, TABLINE, x_pos + 2, gettext(tab_names[i]));
+ mvwaddch(editw, TABLINE, x_pos + width - 3, UI_RBOXLINE_CHAR);
+ mvwaddch(editw, TABLINE, x_pos + width - 2, UI_URCORNER_CHAR);