Skip to content

Icons are narrowed in mintty #20

@sankl

Description

@sankl

Hi, if I use the plugin in mintty the characters get narrowed after applying palette:

Screenshot 2023-03-19 204830
This may be related to the following issue: mintty/mintty#1104
I'm not sure if it is 100% correct way, but if I apply following update to function! s:apply():

@@ -43,7 +43,7 @@ function! s:apply() abort
   endif
   let w:glyph_palette_matches = map(
         \ copy(b:glyph_palette_palette),
-        \ { -> matchadd(v:key, v:val) },
+        \ { -> matchadd(v:key, v:val.' ') },
         \)
endfunction

the issue gets fixed:

Screenshot 2023-03-19 204706

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions