Mercurial > vim
comparison runtime/optwin.vim @ 17791:55c167b08c2b v8.1.1892
patch 8.1.1892: missing index entry and option menu for 'completepopup'
commit https://github.com/vim/vim/commit/36e4d985f0e015b189351d612132d382da9d014d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 20 21:12:16 2019 +0200
patch 8.1.1892: missing index entry and option menu for 'completepopup'
Problem: Missing index entry and option menu for 'completepopup'.
Solution: Add the entries. Adjust #ifdefs to avoid dead code.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Aug 2019 21:15:04 +0200 |
parents | 95c23e180022 |
children | 6650e3dff8d4 |
comparison
equal
deleted
inserted
replaced
17790:c6a0db4bab28 | 17791:55c167b08c2b |
---|---|
1 " These commands create the option window. | 1 " These commands create the option window. |
2 " | 2 " |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Last Change: 2019 Aug 01 | 4 " Last Change: 2019 Aug 20 |
5 | 5 |
6 " If there already is an option window, jump to that one. | 6 " If there already is an option window, jump to that one. |
7 let buf = bufnr('option-window') | 7 let buf = bufnr('option-window') |
8 if buf >= 0 | 8 if buf >= 0 |
9 let winids = win_findbuf(buf) | 9 let winids = win_findbuf(buf) |
804 call append("$", "complete\tspecifies how Insert mode completion works for CTRL-N and CTRL-P") | 804 call append("$", "complete\tspecifies how Insert mode completion works for CTRL-N and CTRL-P") |
805 call append("$", "\t(local to buffer)") | 805 call append("$", "\t(local to buffer)") |
806 call <SID>OptionL("cpt") | 806 call <SID>OptionL("cpt") |
807 call append("$", "completeopt\twhether to use a popup menu for Insert mode completion") | 807 call append("$", "completeopt\twhether to use a popup menu for Insert mode completion") |
808 call <SID>OptionG("cot", &cot) | 808 call <SID>OptionG("cot", &cot) |
809 if exists("+completepopup") | |
810 call append("$", "completepopup\toptions for the Insert mode completion info popup") | |
811 call <SID>OptionG("cpp", &cpp) | |
812 endif | |
809 call append("$", "pumheight\tmaximum height of the popup menu") | 813 call append("$", "pumheight\tmaximum height of the popup menu") |
810 call <SID>OptionG("ph", &ph) | 814 call <SID>OptionG("ph", &ph) |
811 call append("$", "pumwidth\tminimum width of the popup menu") | 815 call append("$", "pumwidth\tminimum width of the popup menu") |
812 call <SID>OptionG("pw", &pw) | 816 call <SID>OptionG("pw", &pw) |
813 call append("$", "completefunc\tuser defined function for Insert mode completion") | 817 call append("$", "completefunc\tuser defined function for Insert mode completion") |