Limit highlighter to line in grep buffers

This commit is contained in:
Delapouite 2018-05-30 14:40:29 +02:00
parent f06badcfd3
commit bbf484c596

View File

@ -29,7 +29,7 @@ All the optional arguments are forwarded to the grep utility} \
hook -group grep-highlight global WinSetOption filetype=grep %{ hook -group grep-highlight global WinSetOption filetype=grep %{
add-highlighter window group grep add-highlighter window group grep
add-highlighter window/grep regex "^((?:\w:)?[^:]+):(\d+):(\d+)?" 1:cyan 2:green 3:green add-highlighter window/grep regex "^((?:\w:)?[^:\n]+):(\d+):(\d+)?" 1:cyan 2:green 3:green
add-highlighter window/grep line %{%opt{grep_current_line}} default+b add-highlighter window/grep line %{%opt{grep_current_line}} default+b
} }