All pastes #778318 Raw Edit

Anonymous

public text v1 · immutable
#778318 ·published 2007-11-17 14:03 UTC
rendered paste body
Index: document/katebuffer.cpp
===================================================================
--- document/katebuffer.cpp     (revision 737888)
+++ document/katebuffer.cpp     (working copy)
@@ -715,7 +715,9 @@
   bool retVal_folding = false;
   m_regionTree.updateLine (current_line, &foldingList, &retVal_folding, true,false);

-  emit tagLines (current_line, current_line);
+  if (retVal_folding) {
+      emit tagLines (current_line, current_line);
+  }
 }

 void KateBuffer::addIndentBasedFoldingInformation(QVector<int> &foldingList,int linelength,bool addindent,int deindent)