mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-26 23:44:30 +02:00
whitepace: add whitespace to conflict detection marker
closes: #2727 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
41c5f54507
commit
5ca7f0b7fe
@ -51,7 +51,8 @@ endfunction
|
||||
|
||||
function! s:conflict_marker()
|
||||
" Checks for git conflict markers
|
||||
let annotation = '\%([0-9A-Za-z_.:]\+\)\?'
|
||||
" space required for jj conflict marker: #2727
|
||||
let annotation = '\%([0-9A-Za-z_.: ]\+\)\?'
|
||||
if match(['rst', 'markdown', 'rmd'], &ft) >= 0
|
||||
" rst filetypes use '=======' as header
|
||||
let pattern = '^\%(\%(<\{7} '.annotation. '\)\|\%(>\{7\} '.annotation.'\)\)$'
|
||||
|
Loading…
x
Reference in New Issue
Block a user