Skip to content

Commit fb89512

Browse files
author
skywind3000
committed
Fix issues with file write and improve function list in Python files. Update border style setup based on global variable existence.
1 parent 363192c commit fb89512

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

autoload/quickui/core.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ function! quickui#core#write_script(command, pause)
835835
endif
836836
let tmpname = fnamemodify(tempname(), ':h') . '/quickui1.sh'
837837
endif
838-
call writefile(lines, tmpname)
838+
silent! call writefile(lines, tmpname)
839839
if s:windows == 0
840840
if exists('*setfperm')
841841
silent! call setfperm(tmpname, 'rwxrwxrws')

autoload/quickui/tags.vim

+12
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,18 @@ function! quickui#tags#function_list(bid, ft)
406406
endif
407407
let g:quickui#tags#elapse = reltimestr(reltime(start))
408408
" echo g:quickui#tags#elapse
409+
if a:ft == 'python'
410+
let output = []
411+
for ni in items
412+
if ni.mode == 'f'
413+
if ni.text =~ '\v<lambda>\s.*\:\s*\S+'
414+
continue
415+
endif
416+
endif
417+
let output += [ni]
418+
endfor
419+
return output
420+
endif
409421
return items
410422
endfunc
411423

plugin/quickui.vim

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ command! -bang -nargs=* -complete=customlist,quickui#command#complete
3939
"----------------------------------------------------------------------
4040
" setup variables
4141
"----------------------------------------------------------------------
42-
let g:quickui#style#border = get(g:, 'quickui_border_style', 1)
42+
if exists('g:quickui_border_style')
43+
let g:quickui#style#border = get(g:, 'quickui_border_style', 1)
44+
endif
4345

4446
function! s:set_quickui_hi()
4547
" hi! QuickDefaultSel ctermbg=

0 commit comments

Comments
 (0)