aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/digraph_search.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/autoload/digraph_search.vim b/autoload/digraph_search.vim
index bae4973..d342f38 100644
--- a/autoload/digraph_search.vim
+++ b/autoload/digraph_search.vim
@@ -37,7 +37,11 @@ function! s:Digraphs() abort
if !exists('s:digraphs')
let s:digraphs = []
let table = 0
- for line in readfile($VIMRUNTIME.'/doc/digraph.txt')
+ let file = globpath(&runtimepath, 'doc/digraph.txt')
+ if !strlen(file)
+ echoerr 'Help file missing'
+ endif
+ for line in readfile(file)
" Flag whether we're in one of the digraph tables; look for the heading
let table = table && strlen(line)