Hi Bram & list,
Looking at test_history.vim, Test_History calls the History_Tests
function for a list of various strings.
for h in ['cmd', ':', '', 'search', '/', '?', 'expr', '=', 'input', '@',
'debug', '>']
call History_Tests(h)
endfor
Most of these are the valid history type names documented at ":help
hist-names".
However, there's an unexpected (to me) element in that list -- ''. It
isn't mentioned in the documentation, but the source shows that it's
supposed to be usable to reference the "current" history type.
Is this actually relied on anywhere?
There's no user-visible way to know what the "current" history type is.
The use of '' to refer to that isn't documented anywhere. The test
implementation falsely implies using '' as the hist-name would fall back
to ':', but it actually falls back to '/' (due to ccline.cmdfirstc being
NUL when the tests are run).
Should this implicit behavior either be made more explicit by being able
to access the current history type or treated as an invalid history
name?
Cheers,
--
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB
--
--
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].
For more options, visit https://groups.google.com/d/optout.