parent
0ba2be1e59
commit
79c2bc0730
@ -790,6 +790,14 @@ function! s:tons(path) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! foreplay#ns() abort
|
function! foreplay#ns() abort
|
||||||
|
let lnum = 1
|
||||||
|
while lnum < line('$') && getline(lnum) =~# '^\s*\%(;.*\)\=$'
|
||||||
|
let lnum += 1
|
||||||
|
endwhile
|
||||||
|
let ns = matchstr(getline(lnum), '\C^(in-ns ''\zs\k\+\ze)')
|
||||||
|
if ns !=# ''
|
||||||
|
return ns
|
||||||
|
endif
|
||||||
let path = s:buffer_path()
|
let path = s:buffer_path()
|
||||||
return s:tons(path ==# '' ? 'user' : path)
|
return s:tons(path ==# '' ? 'user' : path)
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user