Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Fix: :edit-search does not fail when 'jump-to' line ends with a space #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gl4eqen
Copy link

@gl4eqen gl4eqen commented Sep 10, 2021

Any "jump-to" line that ends with a whitespace is not matched by a regex because of a '_' command that strips all the whitespace.

Test case:

echo '/etc/passwd:1:1:this is some text ' | :edit-search fails.
echo '/etc/passwd:1:1:this is some text' | :edit-search succeeds.

x selecting a whole line solves an issue. I'm not sure though if it does not break :edit-search in some way. Thanks a lot for a review.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants