From 43df41e8b907026b56100221fb007de102fce6cd Mon Sep 17 00:00:00 2001 From: "pls.153" Date: Thu, 29 Dec 2022 14:32:17 +0100 Subject: [PATCH] revisions of example 'cl-repl' --- examples/cl-repl/www/index.html | 14 +++++++++++--- src/cpp/main.h | 5 ++++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/examples/cl-repl/www/index.html b/examples/cl-repl/www/index.html index a4073a2..5bf7815 100644 --- a/examples/cl-repl/www/index.html +++ b/examples/cl-repl/www/index.html @@ -1,6 +1,7 @@ + cl-repl file exchange +

File exchange with cl-repl app

@@ -15,15 +22,16 @@

Whole Directory (recursive in Firefox/Chromium)
- +

Single File
- +

- +

diff --git a/src/cpp/main.h b/src/cpp/main.h index 80f4bd2..7516bb5 100644 --- a/src/cpp/main.h +++ b/src/cpp/main.h @@ -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();