aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--VERSION2
-rw-r--r--autoload/digraph_search.vim8
-rw-r--r--doc/digraph_search.txt2
3 files changed, 8 insertions, 4 deletions
diff --git a/VERSION b/VERSION
index 3eefcb9..9084fa2 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.0
+1.1.0
diff --git a/autoload/digraph_search.vim b/autoload/digraph_search.vim
index bae4973..1a9dc92 100644
--- a/autoload/digraph_search.vim
+++ b/autoload/digraph_search.vim
@@ -37,11 +37,15 @@ 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)
- \ || line =~# '\C\*digraph-table\%(-mbyte\)\=\*$'
+ \ || line =~# '\*digraph-table\%(-mbyte\)\=\*$'
" Skip to next line if not in a table
if !table
continue
diff --git a/doc/digraph_search.txt b/doc/digraph_search.txt
index d5bf622..f8bd55c 100644
--- a/doc/digraph_search.txt
+++ b/doc/digraph_search.txt
@@ -1,4 +1,4 @@
-*digraph_search.txt* For Vim version 7.0 Last change: 2019 May 29
+*digraph_search.txt* For Vim version 7.0 Last change: 2019 Jun 22
DESCRIPTION *digraph_search*