pub fn selectargument() -> i32Expand description
Port of selectargument(UNUSED(char **args)) from Src/Zle/textobjects.c:212.
The C body uses the shell’s ctxtlex() lexer-walk machinery
(textobjects.c:233-257) to drive real shell tokenisation over
the buffer. zshrs lowers the lexer through fusevm bytecode and
does not expose a free-running ctxtlex-style scanner; this
port uses whitespace-split tokenisation against the buffer
(matches C output for simple commands without quoting /
expansion / heredocs). Returns 1 when n is out of range,
matching C textobjects.c:225.