-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to simplify how completions get presented in the pager
This is an attempt to simplfy some completion logic. It mainly refactors reader_data_t::handle_completions such that all completions have the token prepended; this attempts to simplify the logic since now all completions replace the token. It also changes how the pager prefix works. Previously the pager prefix was an extra string that was prepended to all completions. In the new model the completions already have the prefix prepended and the prefix is used only for certain width calculations. This is a somewhat frightening change in an interactive component with low test coverage. It tweaks things like how long completions are ellipsized. Buckle in!
- Loading branch information
1 parent
4b947e0
commit b38a23a
Showing
5 changed files
with
129 additions
and
147 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.