From 0ecd9ec587f703ece7bed36cfbffb20ad8b53dc6 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 30 Nov 2014 00:53:32 -0500 Subject: [PATCH] Fix duplicate namespaces in completion --- plugin/fireplace.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fireplace.vim b/plugin/fireplace.vim index 3966d0b..3d6f988 100644 --- a/plugin/fireplace.vim +++ b/plugin/fireplace.vim @@ -90,7 +90,7 @@ function! fireplace#omnicomplete(findstart, base) abort if fireplace#op_available('complete') let response = fireplace#message({'op': 'complete', 'symbol': a:base}) - let trans = '(v:val =~# ''\.'' ? "" : matchstr(a:base, ''^.\+/'')) . v:val' + let trans = '{"word": (v:val =~# ''[./]'' ? "" : matchstr(a:base, ''^.\+/'')) . v:val}' let value = get(response[0], 'value', get(response[0], 'completions')) if type(value) == type([]) if type(get(value, 0)) == type([])