comparison runtime/doc/insert.txt @ 27903:d19b7aee1925

Update runtime files. Commit: https://github.com/vim/vim/commit/c51cf0329809c7ae946c59d6f56699227efc9d1b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 26 12:25:45 2022 +0000 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Feb 2022 13:30:04 +0100
parents 3e661b0cf500
children c968191a8557
comparison
equal deleted inserted replaced
27902:8481c8908b5e 27903:d19b7aee1925
877 if a:findstart 877 if a:findstart
878 return searchpos('\<', 'bnW', line('.'))[1] - 1 878 return searchpos('\<', 'bnW', line('.'))[1] - 1
879 endif 879 endif
880 let res = [] 880 let res = []
881 let h = '' 881 let h = ''
882 for l in systemlist('aiksaurus '.shellescape(a:base)) 882 for l in systemlist('aiksaurus ' .. shellescape(a:base))
883 if l[:3] == '=== ' 883 if l[:3] == '=== '
884 let h = '('.substitute(l[4:], ' =*$', ')', '') 884 let h = '(' .. substitute(l[4:], ' =*$', ')', '')
885 elseif l ==# 'Alphabetically similar known words are: ' 885 elseif l ==# 'Alphabetically similar known words are: '
886 let h = "\U0001f52e" 886 let h = "\U0001f52e"
887 elseif l[0] =~ '\a' || (h ==# "\U0001f52e" && l[0] ==# "\t") 887 elseif l[0] =~ '\a' || (h ==# "\U0001f52e" && l[0] ==# "\t")
888 call extend(res, map(split(substitute(l, '^\t', '', ''), ', '), {_, val -> {'word': val, 'menu': h}})) 888 call extend(res, map(split(substitute(l, '^\t', '', ''), ', '), {_, val -> {'word': val, 'menu': h}}))
889 endif 889 endif
1264 return start 1264 return start
1265 else 1265 else
1266 " find months matching with "a:base" 1266 " find months matching with "a:base"
1267 let res = [] 1267 let res = []
1268 for m in split("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec") 1268 for m in split("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec")
1269 if m =~ '^' . a:base 1269 if m =~ '^' .. a:base
1270 call add(res, m) 1270 call add(res, m)
1271 endif 1271 endif
1272 endfor 1272 endfor
1273 return res 1273 return res
1274 endif 1274 endif
1286 endwhile 1286 endwhile
1287 return start 1287 return start
1288 else 1288 else
1289 " find months matching with "a:base" 1289 " find months matching with "a:base"
1290 for m in split("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec") 1290 for m in split("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec")
1291 if m =~ '^' . a:base 1291 if m =~ '^' .. a:base
1292 call complete_add(m) 1292 call complete_add(m)
1293 endif 1293 endif
1294 sleep 300m " simulate searching for next match 1294 sleep 300m " simulate searching for next match
1295 if complete_check() 1295 if complete_check()
1296 break 1296 break