-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before there was a problem of overscrolling: when messages longer than y axis of the terminal are fetched from the DB, profanity scroll "jumps" to the top, skipping some messages. It's resolved by keeping messages' starting and ending line in the internal profanity buffer, which allows to track proper message positions and to adjust window position accordingly. Message size is now tracked as part of the buffer's record in `_line` variable, which allows calculation of the total buffer size, which is a part of the improved solution for the "underscrolling" problem. Underscrolling problem was fixed in a previous commit d7e46d6 Short recap of the problem: Despite user scrolling to top/bottom of history, factual position is offset from the intended location Another feature of this commit is a minor change which adds fetching message stanza IDs from the DB. It allows correcting messages fetched from history. Fixes #1934
- Loading branch information
1 parent
9ef05f4
commit e4a33aa
Showing
5 changed files
with
120 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.