Yegappan wrote:
> 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? That would also work. We don't have much need to get the callbacks though. ch_info() also doesn't list the callbacks. -- ARTHUR: Well, I AM king... DENNIS: Oh king, eh, very nice. An' how'd you get that, eh? By exploitin' the workers -- by 'angin' on to outdated imperialist dogma which perpetuates the economic an' social differences in our society! If there's ever going to be any progress-- The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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/202009032034.083KYJdd136270%40masaka.moolenaar.net.
