plugin: treat '_' as a word char in acme ^W erase-word

This commit is contained in:
Levi Neely 2026-10-08 18:02:37 +02:00
parent 03f209bfd7
commit f503c53dfc
1 changed files with 3 additions and 1 deletions

View File

@ -1702,7 +1702,9 @@ void OllieView::acmeEraseWord()
break;
}
const QChar r = doc->characterAt(prev);
const bool alnum = r.isLetterOrNumber();
// Acme's isalnum() treats '_' as a word character (it is not in acme's
// punctuation set), so ^W does not stop on underscores.
const bool alnum = r.isLetterOrNumber() || r == QLatin1Char('_');
if (alnum && skipping) {
skipping = false;
} else if (!alnum && !skipping) {