diff options
author | nyamatongwe <unknown> | 2011-04-06 10:21:12 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-04-06 10:21:12 +1000 |
commit | 7923fd9f95575ac5e52ca72b1e9af5d97019ad6c (patch) | |
tree | 914b54d818b9a16f0cfe05ced180293b9f907188 /lexers/LexPerl.cxx | |
parent | 27bc1530f3e369105377fa2de8e200c85d42aa52 (diff) | |
download | scintilla-mirror-7923fd9f95575ac5e52ca72b1e9af5d97019ad6c.tar.gz |
Made the fold backtrack unconditional as discussed on bug #3265401.
Diffstat (limited to 'lexers/LexPerl.cxx')
-rw-r--r-- | lexers/LexPerl.cxx | 6 |
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); } } |