mirror of
https://gitlab.com/eql/lqml.git
synced 2026-01-14 05:11:25 -08:00
revisions of example 'cl-repl'
This commit is contained in:
parent
d106f1f5d4
commit
43df41e8b9
2 changed files with 15 additions and 4 deletions
|
|
@ -36,11 +36,13 @@ public:
|
|||
skipAutoFullStop = true;
|
||||
} else {
|
||||
if (size == 1) {
|
||||
static QChar exChar;
|
||||
bool changed = true;
|
||||
const int code = s.at(0).unicode();
|
||||
switch (code) {
|
||||
// prevent auto full stop after double space
|
||||
case '.':
|
||||
if (skipAutoFullStop) { // prevent auto full stop after double space
|
||||
if (skipAutoFullStop && (exChar == ' ')) {
|
||||
s = " ";
|
||||
} else {
|
||||
changed = false;
|
||||
|
|
@ -84,6 +86,7 @@ public:
|
|||
if (changed) {
|
||||
input->setCommitString(s);
|
||||
}
|
||||
exChar = s.at(0);
|
||||
} else if (size == 2) {
|
||||
bool changed = true;
|
||||
s = s.trimmed();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue