Select objects accepts keywords with a leading underscore (_L, _ALL, _W…) (fixes #1172) (#1193)

This commit is contained in:
Marco Arnulfo
2026-10-19 02:30:46 -04:00
committed by GitHub
parent ef599e58e0
commit a5fa5ca064
3 changed files with 92 additions and 1 deletions
+2
View File
@@ -421,6 +421,8 @@ impl StretchM {
let d = s.doc()?;
let store = d.space(&s.space());
let word = t.trim().to_ascii_lowercase();
// `_C`, `_L`: the English name, as scripts write it.
let word = word.strip_prefix('_').unwrap_or(&word).to_string();
if let Some(m) = SelectMode::from_keyword(&word).filter(|m| m.kind != SelectKind::Group) {
self.mode = Some(m);
return Ok(Step::Continue);