From 77cd4b312e5f86d2fdf1e5fa0d3917be78c868c2 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 14 May 2020 19:05:27 +0000 Subject: Don't order pointers relative to 0. --- editors/kile/distinfo | 3 ++- editors/kile/patches/patch-src_editorkeysequencemanager.cpp | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 editors/kile/patches/patch-src_editorkeysequencemanager.cpp (limited to 'editors') diff --git a/editors/kile/distinfo b/editors/kile/distinfo index 153dbc8d111..72d7efd6d72 100644 --- a/editors/kile/distinfo +++ b/editors/kile/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.22 2015/11/03 03:32:17 agc Exp $ +$NetBSD: distinfo,v 1.23 2020/05/14 19:05:27 joerg Exp $ SHA1 (kile-2.1.3.tar.bz2) = 1a80748d5f01f359b5e5c28140ec90691f0166c5 RMD160 (kile-2.1.3.tar.bz2) = 22105a1e9b48b62dca9c866918ddc6dda3c278e2 SHA512 (kile-2.1.3.tar.bz2) = 820cb5e2579f243ce87409aa4d483a58b0a2cf1d86bff72dd12264570bfe72e7819c88aa4333080f8281e54e8315e2c11f961b41f13a6215913dfa4f7bd3feda Size (kile-2.1.3.tar.bz2) = 4911212 bytes +SHA1 (patch-src_editorkeysequencemanager.cpp) = 33bce5ed2b5e59135211f41c6005626e55a78880 diff --git a/editors/kile/patches/patch-src_editorkeysequencemanager.cpp b/editors/kile/patches/patch-src_editorkeysequencemanager.cpp new file mode 100644 index 00000000000..c306f4573a8 --- /dev/null +++ b/editors/kile/patches/patch-src_editorkeysequencemanager.cpp @@ -0,0 +1,13 @@ +$NetBSD: patch-src_editorkeysequencemanager.cpp,v 1.1 2020/05/14 19:05:27 joerg Exp $ + +--- src/editorkeysequencemanager.cpp.orig 2020-05-13 00:28:34.099099328 +0000 ++++ 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); -- cgit v1.2.3