Commits

Meikel Brandmeyer committed 7db7324

Guard against empty word in DocLookup

Fixes #12

Comments (0)

Files changed (1)

autoload/vimclojure.vim

 endfunction
 
 function! vimclojure#DocLookup(word)
+	if a:word == ""
+		return
+	endif
+
 	let doc = vimclojure#ExecuteNailWithInput("DocLookup", a:word,
 				\ "-n", b:vimclojure_namespace)
 	let buf = g:vimclojure#ResultBuffer.New()