Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons are narrowed in mintty #20

Open
sankl opened this issue Mar 20, 2023 · 1 comment
Open

Icons are narrowed in mintty #20

sankl opened this issue Mar 20, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@sankl
Copy link

sankl commented Mar 20, 2023

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!

@lambdalisue lambdalisue added the help wanted Extra attention is needed label Mar 23, 2023
@lambdalisue
Copy link
Owner

It's a bit hard for me to test on mintty so help wanted.

sankl added a commit to sankl/glyph-palette.vim that referenced this issue Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants