aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexPerl.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-04-06 10:21:12 +1000
committernyamatongwe <devnull@localhost>2011-04-06 10:21:12 +1000
commite2747a702b6e68d68c5b2979c50541ea6f7ca299 (patch)
tree99923e7cb8d2995554b657a92bfad6dee71b0068 /lexers/LexPerl.cxx
parent5f8a4e204bec27ecbb35debac51ebc4bcd031390 (diff)
downloadscintilla-mirror-e2747a702b6e68d68c5b2979c50541ea6f7ca299.tar.gz
Made the fold backtrack unconditional as discussed on bug #3265401.
Diffstat (limited to 'lexers/LexPerl.cxx')
-rw-r--r--lexers/LexPerl.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/lexers/LexPerl.cxx b/lexers/LexPerl.cxx
index 67b8103ba..7f0cbcf62 100644
--- a/lexers/LexPerl.cxx
+++ b/lexers/LexPerl.cxx
@@ -1357,10 +1357,8 @@ void SCI_METHOD LexerPerl::Fold(unsigned int startPos, int length, int /* initSt
// Backtrack to previous line in case need to fix its fold status
if (startPos > 0) {
if (lineCurrent > 0) {
- if (IsCommentLine(lineCurrent - 1, styler)) {
- lineCurrent--;
- startPos = styler.LineStart(lineCurrent);
- }
+ lineCurrent--;
+ startPos = styler.LineStart(lineCurrent);
}
}