charmbracelet / charmbracelet/bubbles

Display area slides after pagenation enabled while list runnning.

Open
#405 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
8.9k
Forks
457
Avg merge
1d 18h
Merged PRs (30d)
5

Description

**Describe the bug**
I added items to list while list model running.
Then, display area slides 1 line to upper.
Selected item (or once selected items) is displayed properly.

**Setup**
Please complete the following information along with version numbers, if applicable.
- WSL on Windows11
- fish and bash
- Windows terminal
- en_US.UTF-8

**To Reproduce**
I little modify `bubbletea/example/list-sample/main.go`.
This program appends items each 1 seccond.
When items overflow a page, the display area slides.

**Source Code**
This not run on go playground.
https://go.dev/play/p/RLjPz27-lxx

**Expected behavior**
Display area will not slide, and index will saved each additions.

**Screenshots**
![list_bug](https://github.com/charmbracelet/bubbles/assets/46400980/d6fd57d7-d2a8-4c57-89e4-8fbd42a575af)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.