diff options
author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-09-28 23:07:42 +0200 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-09-29 21:39:06 +1000 |
commit | 33a18042925667eb8c267a441b5cfa8830c3039e (patch) | |
tree | d3a592920afb988f06d3ba5828a1621eb462a002 /kde-frameworks/ktexteditor/files/ktexteditor-5.26.0-fix-searchbar.patch | |
parent | kde-frameworks/kio: Fix ABI break and limitation to TLS 1.0 (diff) | |
download | gentoo-33a18042925667eb8c267a441b5cfa8830c3039e.tar.gz gentoo-33a18042925667eb8c267a441b5cfa8830c3039e.tar.bz2 gentoo-33a18042925667eb8c267a441b5cfa8830c3039e.zip |
kde-frameworks/ktexteditor: Add more fixes from upstream
Fixes two regressions since 5.23 and one EOL detection bug.
Package-Manager: portage-2.3.0
Diffstat (limited to 'kde-frameworks/ktexteditor/files/ktexteditor-5.26.0-fix-searchbar.patch')
-rw-r--r-- | kde-frameworks/ktexteditor/files/ktexteditor-5.26.0-fix-searchbar.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/kde-frameworks/ktexteditor/files/ktexteditor-5.26.0-fix-searchbar.patch b/kde-frameworks/ktexteditor/files/ktexteditor-5.26.0-fix-searchbar.patch new file mode 100644 index 000000000000..22b3e0f218fa --- /dev/null +++ b/kde-frameworks/ktexteditor/files/ktexteditor-5.26.0-fix-searchbar.patch @@ -0,0 +1,58 @@ +From: Roman Gilg <subdiff@gmail.com> +Date: Thu, 08 Sep 2016 10:51:51 +0000 +Subject: KateNormalInputMode needs to rerun SearchBar enter methods +X-Git-Url: http://quickgit.kde.org/?p=ktexteditor.git&a=commitdiff&h=2c4feeb0c9107732399f8ae3dacea3124572f345 +--- +KateNormalInputMode needs to rerun SearchBar enter methods + +This is a fix for a regression resulting from commit +9223ac51c9453017c9b11718eed858050697cfbd. + +REVIEW: 128859 +--- + + +--- a/src/inputmode/katenormalinputmode.cpp ++++ b/src/inputmode/katenormalinputmode.cpp +@@ -184,7 +184,7 @@ + const bool wantPowerMode = (mode == PowerSearchBar); + + /** +- * create search bar as not there? use right mode ++ * create search bar is not there? use right mode + */ + if (!m_searchBar) { + m_searchBar = new KateSearchBar(wantPowerMode, view(), KateViewConfig::global()); +@@ -193,11 +193,12 @@ + /** + * else: switch mode if needed! + */ +- else if ((mode != IncrementalSearchBarOrKeepMode) && (wantPowerMode != m_searchBar->isPower())) { +- if (wantPowerMode) ++ else if (mode != IncrementalSearchBarOrKeepMode) { ++ if (wantPowerMode) { + m_searchBar->enterPowerMode(); +- else ++ } else { + m_searchBar->enterIncrementalMode(); ++ } + } + + return m_searchBar; + +--- a/src/inputmode/katenormalinputmode.h ++++ b/src/inputmode/katenormalinputmode.h +@@ -78,9 +78,9 @@ + private: + /** + * Search bar mode: +- * - Incremental mode +- * - Power mode, aka find & replace +- * - Incremental mode, but don't change mode if already there ++ * - Setup Incremental mode, among other things: potential new search pattern ++ * - Setup Power mode, aka find & replace: Also potential new search pattern ++ * - Use current mode and current search pattern or if no Search bar exists, launch Incremental mode + */ + enum SearchBarMode { + IncrementalSearchBar, + |