Fix multibyte handling for EOL and bland line
This commit is contained in:
parent
ce77606122
commit
1f065ea5fa
@ -928,11 +928,11 @@ function! s:PromptUser(groups) "{{{
|
|||||||
" EOL
|
" EOL
|
||||||
let lines[line_num]['marker'] .= split(marker_chars, '\zs')[i]
|
let lines[line_num]['marker'] .= split(marker_chars, '\zs')[i]
|
||||||
endif
|
endif
|
||||||
let col_add += marker_chars_first_byte_len
|
let col_add += strlen(split(marker_chars, '\zs')[i])
|
||||||
endfor
|
endfor
|
||||||
else
|
else
|
||||||
" Set the line to the marker character if the line is empty
|
" Set the line to the marker character if the line is empty
|
||||||
let lines[line_num]['marker'] = marker_chars
|
let lines[line_num]['marker'] = matchstr(marker_chars, '^.\{,2}')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" -- Highlight targets ------------------- {{{
|
" -- Highlight targets ------------------- {{{
|
||||||
|
Loading…
Reference in New Issue
Block a user