comparison runtime/doc/eval.txt @ 22077:335365fcbb60 v8.2.1588

patch 8.2.1588: cannot read back the prompt of a prompt buffer Commit: https://github.com/vim/vim/commit/077cc7aa0e0c431e97795612374fe17fe7c88803 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 4 16:35:35 2020 +0200 patch 8.2.1588: cannot read back the prompt of a prompt buffer Problem: Cannot read back the prompt of a prompt buffer. Solution: Add prompt_getprompt(). (Ben Jackson, closes https://github.com/vim/vim/issues/6851)
author Bram Moolenaar <Bram@vim.org>
date Fri, 04 Sep 2020 16:45:04 +0200
parents bbca88cd13d5
children d4c7b3e9cd17
comparison
equal deleted inserted replaced
22076:1b8ace0b3487 22077:335365fcbb60
2682 popup_settext({id}, {text}) none set the text of popup window {id} 2682 popup_settext({id}, {text}) none set the text of popup window {id}
2683 popup_show({id}) none unhide popup window {id} 2683 popup_show({id}) none unhide popup window {id}
2684 pow({x}, {y}) Float {x} to the power of {y} 2684 pow({x}, {y}) Float {x} to the power of {y}
2685 prevnonblank({lnum}) Number line nr of non-blank line <= {lnum} 2685 prevnonblank({lnum}) Number line nr of non-blank line <= {lnum}
2686 printf({fmt}, {expr1}...) String format text 2686 printf({fmt}, {expr1}...) String format text
2687 prompt_getprompt({buf}) String get prompt text
2687 prompt_setcallback({buf}, {expr}) none set prompt callback function 2688 prompt_setcallback({buf}, {expr}) none set prompt callback function
2688 prompt_setinterrupt({buf}, {text}) none set prompt interrupt function 2689 prompt_setinterrupt({buf}, {text}) none set prompt interrupt function
2689 prompt_setprompt({buf}, {text}) none set prompt text 2690 prompt_setprompt({buf}, {text}) none set prompt text
2690 prop_add({lnum}, {col}, {props}) none add a text property 2691 prop_add({lnum}, {col}, {props}) none add a text property
2691 prop_clear({lnum} [, {lnum-end} [, {props}]]) 2692 prop_clear({lnum} [, {lnum-end} [, {props}]])
7833 The number of {exprN} arguments must exactly match the number 7834 The number of {exprN} arguments must exactly match the number
7834 of "%" items. If there are not sufficient or too many 7835 of "%" items. If there are not sufficient or too many
7835 arguments an error is given. Up to 18 arguments can be used. 7836 arguments an error is given. Up to 18 arguments can be used.
7836 7837
7837 7838
7839 prompt_getprompt({buf}) *prompt_getprompt()*
7840 Returns the effective prompt text for buffer {buf}. {buf} can
7841 be a buffer name or number. |prompt-buffer|.
7842
7843 If the buffer doesn't exist or isn't a prompt buffer, an empty
7844 string is returned.
7845
7846 Can also be used as a |method|: >
7847 GetBuffer()->prompt_getprompt()
7848
7849
7838 prompt_setcallback({buf}, {expr}) *prompt_setcallback()* 7850 prompt_setcallback({buf}, {expr}) *prompt_setcallback()*
7839 Set prompt callback for buffer {buf} to {expr}. When {expr} 7851 Set prompt callback for buffer {buf} to {expr}. When {expr}
7840 is an empty string the callback is removed. This has only 7852 is an empty string the callback is removed. This has only
7841 effect if {buf} has 'buftype' set to "prompt". 7853 effect if {buf} has 'buftype' set to "prompt".
7842 7854
7888 call prompt_setprompt(bufnr(), 'command: ') 7900 call prompt_setprompt(bufnr(), 'command: ')
7889 < 7901 <
7890 Can also be used as a |method|: > 7902 Can also be used as a |method|: >
7891 GetBuffer()->prompt_setprompt('command: ') 7903 GetBuffer()->prompt_setprompt('command: ')
7892 7904
7893 prop_ functions are documented here: |text-prop-functions|. 7905 prop_ functions are documented here: |text-prop-functions|
7894 7906
7895 pum_getpos() *pum_getpos()* 7907 pum_getpos() *pum_getpos()*
7896 If the popup menu (see |ins-completion-menu|) is not visible, 7908 If the popup menu (see |ins-completion-menu|) is not visible,
7897 returns an empty |Dictionary|, otherwise, returns a 7909 returns an empty |Dictionary|, otherwise, returns a
7898 |Dictionary| with the following keys: 7910 |Dictionary| with the following keys: