Package: libkatepartinterfaces4 Version: 4:4.10.5-2 Severity: normal Tags: patch
Dear Maintainer, * What led up to the situation? Using KWrite and/or Kate to edit ini text files and using the folding feature of these editor. * What exactly did you do (or not do) that was effective (or ineffective)? Open a INI file in Kate or KWrite. Fold a section (not the first). Try to unfold the folded section by clicking on the arrow icon on the left sidebar, it will fold the section above the folded section instead of unfolding the section next to the arrow icon. * What was the outcome of this action? the click on the folded icon will fold the section above the folded section. * What outcome did you expect instead? It should unfold the section next to the folded icon. The only way to unfold the folded section is to use menus and unfold all top level sections. Restarting KWrite or Kate don't unfold the section as the fold state is saved. So the folding feature is not really usable for these types of files. However, I managed to correct this problem using the provided patch. But there is still another minor bug, when folding a section, it fold the section name of the next section. But at least, folded sections are unfoldable. -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.10-2-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libkatepartinterfaces4 depends on: ii libc6 2.17-92+b1 ii libkcmutils4 4:4.10.5-1 ii libkdecore5 4:4.10.5-1 ii libkdeui5 4:4.10.5-1 ii libkio5 4:4.10.5-1 ii libknewstuff3-4 4:4.10.5-1 ii libkparts4 4:4.10.5-1 ii libktexteditor4 4:4.10.5-1 ii libqt4-dbus 4:4.8.5+dfsg-3 ii libqt4-script 4:4.8.5+dfsg-3 ii libqt4-xml 4:4.8.5+dfsg-3 ii libqtcore4 4:4.8.5+dfsg-3 ii libqtgui4 4:4.8.5+dfsg-3 ii libstdc++6 4.8.1-2 libkatepartinterfaces4 recommends no packages. libkatepartinterfaces4 suggests no packages. -- no debconf information
--- kate-4.10.5.orig/part/view/kateviewhelpers.cpp +++ kate-4.10.5/part/view/kateviewhelpers.cpp @@ -1962,13 +1962,14 @@ void KateIconBorder::showBlock() else newRange = KTextEditor::Range(beg, m_viewInternal->doc()->documentEnd()); } - KateLineInfo info; - tree->getLineInfo(&info, m_currentBlockLine); - if ((info.startsVisibleBlock)) { + if ((node->isVisible())) { node=tree->findNodeStartingAt(m_currentBlockLine); if (node) { - if (node != tree->rootNode () && node->getBegin(tree, &beg) && node->getEnd(tree, &end)) { - newRange = KTextEditor::Range(beg, end); + if (node != tree->rootNode () && node->getBegin(tree, &beg)) { + if (node->getEnd(tree, &end)) + newRange = KTextEditor::Range(beg, end); + else + newRange = KTextEditor::Range(beg, m_viewInternal->doc()->documentEnd()); } } }