Commit c27c398
committed
fix(previewer): rg errmsg is mistakenly taken as ctags pattern
Problem:
When rg cmd fail with errmsg e.g. `rg: PCRE2: error`
This will be parsed and treated as an entry(with lnum=0)
`matchadd` will remain even buf changed in window, so
we have to clear the matches on each preview.
To reproduce: `FzfLua live_grep search=\] no_esc=true`
then type `<bs>`, `]`, `<bs>`, `]`... (with rg --pcre2)
Maybe this can also happened in `FzfLua global`.1 parent 8342463 commit c27c398
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1265 | 1265 | | |
1266 | 1266 | | |
1267 | 1267 | | |
1268 | | - | |
| 1268 | + | |
1269 | 1269 | | |
1270 | 1270 | | |
1271 | 1271 | | |
| |||
0 commit comments