diff --git a/clink/lib/src/textlist_impl.cpp b/clink/lib/src/textlist_impl.cpp index e9a032fad..6b9253bd0 100644 --- a/clink/lib/src/textlist_impl.cpp +++ b/clink/lib/src/textlist_impl.cpp @@ -1525,7 +1525,7 @@ void textlist_impl::update_display() m_horz_scroll_range = 0; m_horz_item_enabled = 0; memset(m_horz_column_enabled, 0, sizeof(m_horz_column_enabled)); - m_item_cells = max(0, min(m_longest, (m_mouse_width / 2) - m_max_num_cells)); + m_item_cells = max(0, min(m_longest, (m_mouse_width / (m_has_columns ? 2 : 1)) - m_max_num_cells)); if (m_item_cells > 0) {