Fix alias edge case detection in cfile
This commit is contained in:
parent
04a7f542f5
commit
df563ed15f
@ -1348,10 +1348,15 @@ function! fireplace#cfile() abort
|
||||
elseif file =~# '^[^/]*/[^/.]*$' && file =~# '^\k\+$'
|
||||
let [file, jump] = split(file, "/")
|
||||
if file !~# '\.'
|
||||
try
|
||||
let file = tr(fireplace#evalparse('((ns-aliases *ns*) '.s:qsym(file).' '.s:qsym(file).')'), '.-', '/_')
|
||||
catch /^Clojure:/
|
||||
endtry
|
||||
if fireplace#op_available('info')
|
||||
let res = fireplace#message({'op': 'info', 'symbol': file})
|
||||
let file = get(get(res, 0, {}), 'ns', file)
|
||||
else
|
||||
try
|
||||
let file = tr(fireplace#evalparse('((ns-aliases *ns*) '.s:qsym(file).' '.s:qsym(file).')'), '.-', '/_')
|
||||
catch /^Clojure:/
|
||||
endtry
|
||||
endif
|
||||
endif
|
||||
elseif file =~# '^\w[[:alnum:]-]\+\.[[:alnum:].-]\+$'
|
||||
let file = tr(file, '.-', '/_')
|
||||
|
Loading…
Reference in New Issue
Block a user