Skip to content

Commit

Permalink
Respect existing cellwidths
Browse files Browse the repository at this point in the history
Close #27
  • Loading branch information
lambdalisue committed Nov 29, 2023
1 parent f947884 commit 4d0ca21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/nerdfont/cellwidths.vim
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function! nerdfont#cellwidths#fix() abort
let l:values = reduce(values(g:nerdfont#cellwidths#code_points), { a, v -> a + v })
let l:values = map(l:values, {_, v -> type(v) is# v:t_list ? v : [v, v]})
let l:list = map(l:values, {_, v -> type(v) is# v:t_list ? v + [2] : [v, v, 2]})
let l:list = s:norm(l:list)
let l:list = s:norm(l:list + getcellwidths())
call setcellwidths(l:list)
endfunction

Expand Down

0 comments on commit 4d0ca21

Please sign in to comment.