Hi All,
Looks like the full expansion of the format of expand("<sfile>") changed
sometime between vim 8.1 and 8.2, and as a result it breaks the way some
scripts (LaTeX-Box, in particular) get the SID.
While tracing this down I realized that docs (Vim 8.2) say:
If you need to get the script number to use in a complicated script,
you can use this function:
function s:SID()
return matchstr(expand('<sfile>'), '<SNR>\zs\d\+\ze_SID$')
endfun
Given that expand('<SID>') does the same thing, perhaps you can
replace/remove the above paragraph?
GI
--
Teacher confiscated a rubber band pistol from his algebra class.
It was weapon of math disruption.
--
--
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/20201117161144.GF10881%40andrew.cmu.edu.