-
-
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 might be a part of the improved solution for the "underscrolling" problem, if we are going to limit profanity's buffer size by amount of lines as opposed to the limitation based on the amount of message which is currently used. Before adding a limitation by amount of lines, careful consideration is required, as some users don't use history and their temporary message history can be cut to minimal limit because of 1 long received/sent message. 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
0e66cbe
commit fb851e9
Showing
4 changed files
with
94 additions
and
69 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
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