diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2024-02-25 11:12:55 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-02-27 00:03:36 +1100 |
| commit | 40ffd5ff3b7e8990ddc9d1a96dcb4dd72423ceef (patch) | |
| tree | d75f2e1f548de4f10f174a9fbc89347cb1efbc1b /src/shared_string.cc | |
| parent | 20d353936e10b512e30beb3cd4089b5334dfe750 (diff) | |
rc grep/make: never match multiline filenames
If a user modifies a grep buffer, we can end up in weird situations
where we try match a filename over multiple lines.
Let's rule out newlines in filenames here. There is an argument
this is a case of GIGO but we already do this for the corresponding
highlighters.
We also do it in make.kak, see ca225ad4d (Cleanup make.kak and optimize
the make-next/make-prev regexes, 2016-12-09). There is one case left
where a filename would theoretically span multiple lines. Fix and
optimize this too.
Diffstat (limited to 'src/shared_string.cc')
0 files changed, 0 insertions, 0 deletions
