Skip to main content

get_compqstack

Function get_compqstack 

Source
pub fn get_compqstack(pm: *mut param) -> String
Expand description

Direct port of char *get_compqstack(UNUSED(Param pm)) from Src/Zle/complete.c:1469. Walks the compqstack byte buffer and decodes each quote-state byte (QT_NONE/QT_SINGLE/QT_DOUBLE/ QT_DOLLARS/QT_BACKTICK/QT_BACKSLASH) into its single-char printable form via comp_quoting_string. Was returning the raw QT_* byte stack which gave gibberish like \x00\x01\x02 to callers reading $compstate[quoting_stack].