-
Notifications
You must be signed in to change notification settings - Fork 19
🐛 Fix helper/input cancellation on Vim
#273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Fix helper/input cancellation on Vim
#273
Conversation
WalkthroughThe changes in this pull request involve modifications to the Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #273 +/- ##
=======================================
Coverage 85.97% 85.97%
=======================================
Files 63 63
Lines 3415 3415
Branches 299 299
=======================================
Hits 2936 2936
Misses 477 477
Partials 2 2 ☔ View full report in Codecov by Sentry. |
7a8f792 to
b255eee
Compare
helper/input cancellation on Vimhelper/input cancellation on Vim
|
Should I update the version number in the cacheKey variable? |
lambdalisue
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I update the version number in the cacheKey variable?
Yes, please.
helper/input_test.ts
Outdated
| "CmdlineEnter", | ||
| "*", | ||
| `call feedkeys("Hello world!\\<Esc>", "it")`, | ||
| `call feedkeys("Hello world!\\<Left>\\<Esc>", "it")`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a new test and keep the previous one.
Fix `helper/input` does not return `null` on <ESC>/<C-c> if the cursor is not at the end of line on Vim.
b255eee to
3459053
Compare
|
Updated the patch. |
|
Thanks a lot 🎉 |
Fix
helper/inputdoes not returnnullon / if the cursor is not at the end of line on Vim.does not remove text between cursor and the tail of line, so if / is typed outside the end of line, unexpected text appears after
###DenopsStdHelperInputCancelled###and input cancellation fails.Summary by CodeRabbit
New Features
<Esc>and<C-c>to enhance user input handling.Bug Fixes
<Esc>and<C-c>key sequences when pressed outside the end of the line, ensuring accurate recognition during input processing.