Skip to content

Conversation

@bobrippling
Copy link
Contributor

For example, :s;abc/xyz;replacement; would only highlight the abc part of the search term, since Vim would think the / was the search delimiter, not part of the pattern, and stop the highlighting there.

We now handle both dirc - the direction in which to search, and the delimiter, which may or may not be / or ?. This is used when do_search() is deciding on the current search pattern to look for.

For example, `:s;abc/xyz;replacement;` would only highlight the
`abc` part of the search term, since vim would think the '/' was
the search delimiter.
@k-takata
Copy link
Member

https://travis-ci.org/vim/vim/jobs/652708822#L2980
heap-buffer-overflow is detected.

@bobrippling
Copy link
Contributor Author

Interesting, looks like I was bit a overzealous with one of my changes

@brammool brammool closed this in c036e87 Feb 21, 2020
glacambre added a commit to glacambre/neovim that referenced this pull request Apr 4, 2021
…parator

Problem:    Highlighting for :s wrong when using different separator.
Solution:   Use separat argument for search direction and separator. (Rob
            Pilling, closes vim/vim#5665)
vim/vim@c036e87
glacambre added a commit to glacambre/neovim that referenced this pull request Apr 4, 2021
…parator

Problem:    Highlighting for :s wrong when using different separator.
Solution:   Use separat argument for search direction and separator. (Rob
            Pilling, closes vim/vim#5665)
vim/vim@c036e87
glacambre added a commit to glacambre/neovim that referenced this pull request Apr 4, 2021
…parator

Problem:    Highlighting for :s wrong when using different separator.
Solution:   Use separat argument for search direction and separator. (Rob
            Pilling, closes vim/vim#5665)
vim/vim@c036e87
glacambre added a commit to glacambre/neovim that referenced this pull request Apr 4, 2021
…parator

Problem:    Highlighting for :s wrong when using different separator.
Solution:   Use separat argument for search direction and separator. (Rob
            Pilling, closes vim/vim#5665)
vim/vim@c036e87
glacambre added a commit to glacambre/neovim that referenced this pull request Apr 4, 2021
…parator

Problem:    Highlighting for :s wrong when using different separator.
Solution:   Use separat argument for search direction and separator. (Rob
            Pilling, closes vim/vim#5665)
vim/vim@c036e87
glacambre added a commit to glacambre/neovim that referenced this pull request Apr 4, 2021
…parator

Problem:    Highlighting for :s wrong when using different separator.
Solution:   Use separat argument for search direction and separator. (Rob
            Pilling, closes vim/vim#5665)
vim/vim@c036e87
janlazo pushed a commit to neovim/neovim that referenced this pull request Apr 4, 2021
…parator (#14286)

Problem:    Highlighting for :s wrong when using different separator.
Solution:   Use separat argument for search direction and separator. (Rob
            Pilling, closes vim/vim#5665)
vim/vim@c036e87
@bobrippling bobrippling deleted the fix/preview-non-slash branch June 29, 2021 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants