File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1181,7 +1181,7 @@ function! s:UpdateFolderOrNew(name, files)
11811181endfunction
11821182
11831183function ! s: IsShelfFolder (folder)
1184- return has_key (a: folder , ' shelf' )
1184+ return ! empty ( a: folder ) && has_key (a: folder , ' shelf' )
11851185endfunction
11861186
11871187function ! s: UpdateShelfChangelist ()
@@ -1448,7 +1448,9 @@ function! s:SetupChangelistBuffer()
14481448 call s: AddMapping (mappings.move_to_changelist, ' <SID>MoveToFolder()' )
14491449 call s: AddVisualMapping (mappings.move_to_changelist, ' <SID>MoveToFolder()' )
14501450 call s: AddMapping (mappings.shelf, ' <SID>ShelfFile()' )
1451+ call s: AddVisualMapping (mappings.shelf, ' <SID>ShelfFile()' )
14511452 call s: AddMapping (mappings.unshelf, ' <SID>ShelfFile()' )
1453+ call s: AddVisualMapping (mappings.unshelf, ' <SID>ShelfFile()' )
14521454
14531455 hi DiffBufferModify ctermfg= 3 guifg= #b58900
14541456 hi DiffBufferAdd ctermfg= 2 guifg= #719 e07
You can’t perform that action at this time.
0 commit comments