summaryrefslogtreecommitdiff
path: root/src/shared_string.cc
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2024-02-25 11:12:55 +0100
committerMaxime Coste <mawww@kakoune.org>2024-02-27 00:03:36 +1100
commit40ffd5ff3b7e8990ddc9d1a96dcb4dd72423ceef (patch)
treed75f2e1f548de4f10f174a9fbc89347cb1efbc1b /src/shared_string.cc
parent20d353936e10b512e30beb3cd4089b5334dfe750 (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