diff options
author | Anthony Fok <foka@debian.org> | 2018-06-14 13:37:20 -0600 |
---|---|---|
committer | Iru Cai (vimacs) <mytbk920423@gmail.com> | 2018-06-15 00:43:25 +0000 |
commit | 3ee241328fdb9210a10fa6f1eca2664a5c30fdf5 (patch) | |
tree | c9af6973b1bcf84948368a8fb3ee0c01cd6923c2 /src/fqterm | |
parent | 7c1e8b2bde592430934a96d3f6e2815956fc26f1 (diff) | |
download | fqterm-3ee241328fdb9210a10fa6f1eca2664a5c30fdf5.tar.xz |
Fix some minor typos
Credit: "Unknow" was detected by Lintian, see https://bugs.debian.org/898537
Diffstat (limited to 'src/fqterm')
-rw-r--r-- | src/fqterm/fqterm_python.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fqterm/fqterm_python.cpp b/src/fqterm/fqterm_python.cpp index b4d710e..fcb071f 100644 --- a/src/fqterm/fqterm_python.cpp +++ b/src/fqterm/fqterm_python.cpp @@ -125,8 +125,8 @@ QString getErrOutputFile(FQTermWindow *lp) { return getPath(USER_CONFIG) + str2; } -// copy current artcle for back compatible use only -// for new coder please use getArticle +// copy current article, for backward-compatible use only. +// for new code, please use getArticle static PyObject *fqterm_copyArticle(PyObject *, PyObject *args) { long lp; if (!PyArg_ParseTuple(args, "l", &lp)) { @@ -140,7 +140,7 @@ static PyObject *fqterm_copyArticle(PyObject *, PyObject *args) { QReadWriteLock& bufferLock = termWindow_->getSession()->getBufferLock(); QReadLocker locker(&bufferLock); while (1) { - // check it there is duplicated string + // check if there is duplicated string // it starts from the end in the range of one screen height // so this is a non-greedy match QString strTemp; @@ -156,7 +156,7 @@ static PyObject *fqterm_copyArticle(PyObject *, PyObject *args) { } QStringList::Iterator it2 = it; bool dup = true; - // match more to see if its duplicated + // match more to see if it's duplicated for (int j = 0; j <= i; j++, it2++) { QString str1; termWindow_->getSession()->getBuffer()->getTextLineInTerm(j)->getAllPlainText(str1); @@ -237,7 +237,7 @@ static PyObject *fqterm_getArticle(PyObject *, PyObject *args) { } QStringList::Iterator it2 = it; bool dup = true; - // match more to see if its duplicated + // match more to see if it's duplicated for (int j = 0; j <= i && it2 != strList.end(); j++, it2++) { QString str1; termWindow_->getSession()->getBuffer()->getTextLineInTerm(j)->getAllPlainText(str1); |