diff options
author | Dennis Eriksen <d@ennis.no> | 2024-06-09 15:44:30 +0200 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2024-06-09 15:44:30 +0200 |
commit | 56b80b236ff11c1ce70c65e575768b2aafd51f41 (patch) | |
tree | 092b8c87a3dfe3dc7bc0b9e412f2a5a1ce789316 | |
parent | The space is added later if you have the correct version (diff) | |
download | idgatt-56b80b236ff11c1ce70c65e575768b2aafd51f41.tar.gz |
check if we have termguicolors before activating
-rw-r--r-- | vim/.vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -227,7 +227,7 @@ if &term =~ 'tmux' || &term =~ 'screen' endif " Check if 24bit colors are supported, and activate them -if $COLORTERM == 'truecolor' +if $COLORTERM == 'truecolor' && has('termguicolors') " t_8f is termcode for set foreground color (R, G, B) let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" " t_8b is termcode for set background color (R, G, B) |