aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-22 22:06:15 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-22 22:06:15 +1200
commit06eb698192dfa4ea64458aa1483d024d251e82ec (patch)
treeee09adabc78596a265494c1421a329d99858fc2f
parent005fb8c6e4042e8eca2af224b9ada2d61824f9b5 (diff)
parent089c3a24658b4fbdbf7f29ceda95bfd272c6d962 (diff)
downloadvim-digraph-search-master.tar.gz
vim-digraph-search-master.zip
Merge branch 'release/v1.1.0'HEADv1.1.0master
* release/v1.1.0: Remove unneeded pattern qualifier Find digraph help file a little more correctly
-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*