-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix multi-word flag suggestions (#736)
* Half-baked fix for multi-word flag suggestions * Don't ignore result future for flag parsing * fix jd * restore old cursor restoration logic * Keep suggesting after successfully parsed flag value if there is no following space We could better support greedy flags by using similar logic to flag yielding strings here. However, for now this solves the multi-word suggestion issue. * Flag yielding parsers will consume a single trailing dash --------- Co-authored-by: Alexander Söderberg <[email protected]>
- Loading branch information
1 parent
5d31f7d
commit c11969f
Showing
3 changed files
with
51 additions
and
31 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