File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ endfunction
106
106
" gVim when colors can't be automatically calculated.
107
107
"
108
108
function ! indent_guides#basic_highlight_colors () abort
109
- let l: cterm_colors = (&g: background == ' dark' ) ? [' darkgrey' , ' black' ] : [' lightgrey' , ' white' ]
110
- let l: gui_colors = (&g: background == ' dark' ) ? [' grey15' , ' grey30' ] : [' grey70' , ' grey85' ]
109
+ let l: cterm_colors = (&g: background == # ' dark' ) ? [' darkgrey' , ' black' ] : [' lightgrey' , ' white' ]
110
+ let l: gui_colors = (&g: background == # ' dark' ) ? [' grey15' , ' grey30' ] : [' grey70' , ' grey85' ]
111
111
112
112
exe ' hi IndentGuidesEven guibg=' . l: gui_colors [0 ] . ' guifg=' . l: gui_colors [1 ] . ' ctermbg=' . l: cterm_colors [0 ] . ' ctermfg=' . l: cterm_colors [1 ]
113
113
exe ' hi IndentGuidesOdd guibg=' . l: gui_colors [1 ] . ' guifg=' . l: gui_colors [0 ] . ' ctermbg=' . l: cterm_colors [1 ] . ' ctermfg=' . l: cterm_colors [0 ]
@@ -153,7 +153,7 @@ endfunction
153
153
function ! indent_guides#lighten_or_darken_color (color ) abort
154
154
let l: new_color = ' '
155
155
156
- if (&g: background == ' dark' )
156
+ if (&g: background == # ' dark' )
157
157
let l: new_color = color_helper#hex_color_lighten (a: color , s: change_percent )
158
158
else
159
159
let l: new_color = color_helper#hex_color_darken (a: color , s: change_percent )
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ if !exists('g:indent_guides_exclude_filetypes')
67
67
endif
68
68
69
69
" Default mapping
70
- if ! hasmapto (' <Plug>IndentGuidesToggle' , ' n' ) && maparg (' <Leader>ig' , ' n' ) == ' '
70
+ if ! hasmapto (' <Plug>IndentGuidesToggle' , ' n' ) && maparg (' <Leader>ig' , ' n' ) == # ' '
71
71
\ && g: indent_guides_default_mapping != 0
72
72
nmap <silent> <unique> <Leader> ig <Plug> IndentGuidesToggle
73
73
endif
You can’t perform that action at this time.
0 commit comments