Hi Ben, On Thu, Sep 3, 2020 at 9:28 AM Ben Jackson <[email protected]> wrote:
> This adds the (optional) prompt key to the return from getbufinfo() in > order to see the effective prompt text for a prompt buffer. > > This is useful when writing an omnifunc for prompt buffers, i.e. you can > find the real text being entered with something like: > > let line = getline( line( '.' ) )[ len( getbufinfo( '%' )[ 0 ].prompt ) : ] > > This means that you don't have to know a-priori what the prompt will be > and/or don't need to find a way to push this into your omnifunc callback. > Instead of returning the prompt text in the getbufinfo() function, do you think a new prompt_getinfo() function should be added that returns the information set by the prompt_setcallback(), prompt_setinterrupt() abd prompt_setprompt() functions? Regards, Yegappan -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAAW7x7mP9EZ%3DqqBtAVFZsq7RDQv-JndcWmnUmKTugOJwOsY2UQ%40mail.gmail.com.
