get("curitem"): Outdated help text?
Posted: 18 Jun 2026 08:33
Not sure if I understand it correctly, but I think that something about get("curitem") is off.
When nothing is selected, it just returns ... nothing.
Either the help text seems off or the behaviour?
When nothing is selected, it just returns ... nothing.
Either the help text seems off or the behaviour?
help file wrote:get() [...]
CurItem
"curitem", [part], [flags] and "curitemprev", [part], [flags]
Returns the current/previous item on whatever pane. Both take optional parameters path, file, base, and ext.
flags: (bit field)
1: Mind folders when returning "base" or "ext".
Note: get(curitem) differs from the native variable <curitem> in that it will return the previously selected and focused item if the currently focused item is not selected.
Examples:
echo get("curitem",); //E:\Test\b\c\Jane.txt
echo get("curitem", "drive"); //"E:" or "\\VEGA\Users"
[...]