From dbf9623050b9b31360903c911d94b72f58601df8 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 22 Jun 2019 22:05:15 +1200 Subject: Find digraph help file a little more correctly --- autoload/digraph_search.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3 From 85f334a1754dcda9eb66f2305208b343763346a5 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 22 Jun 2019 22:05:29 +1200 Subject: Remove unneeded pattern qualifier --- autoload/digraph_search.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/digraph_search.vim b/autoload/digraph_search.vim index d342f38..1a9dc92 100644 --- a/autoload/digraph_search.vim +++ b/autoload/digraph_search.vim @@ -45,7 +45,7 @@ function! s:Digraphs() abort " 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 -- cgit v1.2.3 From 089c3a24658b4fbdbf7f29ceda95bfd272c6d962 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 22 Jun 2019 22:06:09 +1200 Subject: Bump VERSION --- VERSION | 2 +- doc/digraph_search.txt | 2 +- 2 files changed, 2 insertions(+), 2 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/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* -- cgit v1.2.3