Fix uses of <c-m> in rc files, <ret> should be used now

This commit is contained in:
Maxime Coste 2016-07-11 19:47:56 +01:00
parent e288d84408
commit bbceae97a2
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ hook global WinSetOption filetype=grep %{
addhl group grep addhl group grep
addhl -group grep regex "^((?:\w:)?[^:]+):(\d+):(\d+)?" 1:cyan 2:green 3:green addhl -group grep regex "^((?:\w:)?[^:]+):(\d+):(\d+)?" 1:cyan 2:green 3:green
addhl -group grep line %{%opt{_grep_current_line}} default+b addhl -group grep line %{%opt{_grep_current_line}} default+b
hook buffer -group grep-hooks NormalKey <c-m> grep-jump hook buffer -group grep-hooks NormalKey <ret> grep-jump
} }
hook global WinSetOption filetype=(?!grep).* %{ rmhl grep; rmhooks buffer grep-hooks } hook global WinSetOption filetype=(?!grep).* %{ rmhl grep; rmhooks buffer grep-hooks }

View File

@ -24,7 +24,7 @@ addhl -group /make line %{%opt{_make_current_error_line}} default+b
hook global WinSetOption filetype=make %{ hook global WinSetOption filetype=make %{
addhl ref make addhl ref make
hook buffer -group make-hooks NormalKey <c-m> make-jump hook buffer -group make-hooks NormalKey <ret> make-jump
} }
hook global WinSetOption filetype=(?!make).* %{ rmhl make; rmhooks buffer make-hooks } hook global WinSetOption filetype=(?!make).* %{ rmhl make; rmhooks buffer make-hooks }