lib/soywiki.vim in soywiki-0.6.7 vs lib/soywiki.vim in soywiki-0.7.0

- old
+ new

@@ -368,10 +368,11 @@ exec "leftabove split ".a:buffer_name setlocal completefunc=CompletePageTitle setlocal buftype=nofile setlocal noswapfile setlocal modifiable + setlocal textwidth=0 resize 1 inoremap <silent> <buffer> <cr> <Esc>:call <SID>select_page()<CR> inoremap <buffer> <Tab> <Esc>:call <SID>reduce_matches()<cr> noremap <buffer> q <Esc>:close<cr> inoremap <buffer> <Esc> <Esc>:close<cr> @@ -407,10 +408,13 @@ call add(res, m) endif endfor else " autocomplete inline - let pages = base =~ '\C^[a-z]' ? s:matching_pages : s:pages_in_this_namespace(s:matching_pages) + if ! exists("s:matching_pages") + let s:matching_pages = s:get_page_list() + endif + let pages = base =~ '\C^[a-z]' ? s:matching_pages[:] : s:pages_in_this_namespace(s:matching_pages[:]) for m in pages if m =~ '^\c' . base call add(res, m) endif endfor