plugin: treat '_' as a word char in acme ^W erase-word
This commit is contained in:
parent
03f209bfd7
commit
f503c53dfc
|
|
@ -1702,7 +1702,9 @@ void OllieView::acmeEraseWord()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
const QChar r = doc->characterAt(prev);
|
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) {
|
if (alnum && skipping) {
|
||||||
skipping = false;
|
skipping = false;
|
||||||
} else if (!alnum && !skipping) {
|
} else if (!alnum && !skipping) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue