kakounedotcom / connect.kak

Connect a program to Kakoune clients
https://kakoune.org
The Unlicense
88 stars 18 forks source link

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

Open gl4eqen opened 3 years ago

gl4eqen commented 3 years ago

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.