diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-22 22:06:15 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-22 22:06:15 +1200 |
commit | 06eb698192dfa4ea64458aa1483d024d251e82ec (patch) | |
tree | ee09adabc78596a265494c1421a329d99858fc2f | |
parent | Merge branch 'release/v1.0.0' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-digraph-search-06eb698192dfa4ea64458aa1483d024d251e82ec.tar.gz vim-digraph-search-06eb698192dfa4ea64458aa1483d024d251e82ec.zip |
* release/v1.1.0:
Remove unneeded pattern qualifier
Find digraph help file a little more correctly
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | autoload/digraph_search.vim | 8 | ||||
-rw-r--r-- | doc/digraph_search.txt | 2 |
3 files changed, 8 insertions, 4 deletions
@@ -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* |