aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authoradridg <adridg@FreeBSD.org>2018-08-28 16:15:05 +0800
committeradridg <adridg@FreeBSD.org>2018-08-28 16:15:05 +0800
commit7c61321e6e60ef393baf6d5a9ba6a90d65487452 (patch)
treea50a3ffe19b0ad2823dc5f76fdeb9215c0c5274e /editors
parent94cafddf3996a763f43822563f39cb71502b72a6 (diff)
downloadfreebsd-ports-gnome-7c61321e6e60ef393baf6d5a9ba6a90d65487452.tar.gz
freebsd-ports-gnome-7c61321e6e60ef393baf6d5a9ba6a90d65487452.tar.zst
freebsd-ports-gnome-7c61321e6e60ef393baf6d5a9ba6a90d65487452.zip
Clang7 fixes
PR: 230945
Diffstat (limited to 'editors')
-rw-r--r--editors/kile-kde4/files/patch-src_editorkeysequencemanager.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/editors/kile-kde4/files/patch-src_editorkeysequencemanager.cpp b/editors/kile-kde4/files/patch-src_editorkeysequencemanager.cpp
new file mode 100644
index 000000000000..2036ba7f9b6d
--- /dev/null
+++ b/editors/kile-kde4/files/patch-src_editorkeysequencemanager.cpp
@@ -0,0 +1,11 @@
+--- src/editorkeysequencemanager.cpp.orig 2018-08-28 08:13:42 UTC
++++ src/editorkeysequencemanager.cpp
+@@ -203,7 +203,7 @@ bool Recorder::eventFilter(QObject* /* o
+ {
+ for(int i = 0; i < s.length(); ++i) {
+ QString toCheck = s.right(s.length() - i);
+- if(m_watchedKeySequencesList.contains(toCheck) > 0) {
++ if(m_watchedKeySequencesList.contains(toCheck)) {
+ m_view->document()->removeText(KTextEditor::Range(m_oldLine, m_oldCol - (s.length() - i - 1), m_oldLine, m_oldCol));
+ m_typedSequence.clear(); // clean m_typedSequence to avoid wrong action triggering if one presses keys without printable character
+ emit detectedTypedKeySequence(toCheck);