diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-17 06:50:15 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-10-17 06:50:15 -0500 |
commit | ad251f8d30f4bccb9dadeb199c9b0789e4551a09 (patch) | |
tree | 254641009b4ff03e20c0fac9dd81721ec8e0f02b /user/ktexteditor/improper-indentation-fix.patch | |
parent | 6243943c7d8f24015960f779e42f08617a824ace (diff) | |
download | packages-ad251f8d30f4bccb9dadeb199c9b0789e4551a09.tar.gz packages-ad251f8d30f4bccb9dadeb199c9b0789e4551a09.tar.bz2 packages-ad251f8d30f4bccb9dadeb199c9b0789e4551a09.tar.xz packages-ad251f8d30f4bccb9dadeb199c9b0789e4551a09.zip |
user/ktexteditor: add indentation patch suggested by kde-packagers@
Diffstat (limited to 'user/ktexteditor/improper-indentation-fix.patch')
-rw-r--r-- | user/ktexteditor/improper-indentation-fix.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/user/ktexteditor/improper-indentation-fix.patch b/user/ktexteditor/improper-indentation-fix.patch new file mode 100644 index 000000000..fc5d9d9d3 --- /dev/null +++ b/user/ktexteditor/improper-indentation-fix.patch @@ -0,0 +1,32 @@ +From aeebeadb5f5955995c17de56cf83ba7166a132dd Mon Sep 17 00:00:00 2001 +From: Sven Brauch <mail@svenbrauch.de> +Date: Mon, 16 Oct 2017 18:35:50 +0200 +Subject: fix some indenters from indenting on random characters + +If triggerCharacters was not set, toString() would return "undefined", +making indenters trigger on u, n, d, e, f, i and n. + +Differential Revision: https://phabricator.kde.org/D8333 +--- + src/script/kateindentscript.cpp | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/script/kateindentscript.cpp b/src/script/kateindentscript.cpp +index 15ce387..380bd45 100644 +--- a/src/script/kateindentscript.cpp ++++ b/src/script/kateindentscript.cpp +@@ -46,7 +46,10 @@ const QString &KateIndentScript::triggerCharacters() + + m_triggerCharactersSet = true; + +- m_triggerCharacters = global(QStringLiteral("triggerCharacters")).toString(); ++ auto triggerCharacters = global(QStringLiteral("triggerCharacters")); ++ if ( !triggerCharacters.isUndefined() ) { ++ m_triggerCharacters = triggerCharacters.toString(); ++ } + + //qCDebug(LOG_KTE) << "trigger chars: '" << m_triggerCharacters << "'"; + +-- +cgit v0.11.2 + |