-
-
Notifications
You must be signed in to change notification settings - Fork 973
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable partial preprompt updates when possible
This commit adds a third mode to the preprompt update: lines between previous and new preprompt match. We then compare the preprompts, character-by-character to find the position where it differs. From this we can calculate the new position for the update. Since "%~" is the only prompt substitution we use in the preprompt, we now expand it in-place so that we get comparable preprompts from the get-go.
- Loading branch information
Showing
1 changed file
with
68 additions
and
30 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