Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /lexers/LexHaskell.cxx [923af5] .. [e26609] Maximize Restore

  Switch to side-by-side view

--- a/lexers/LexHaskell.cxx
+++ b/lexers/LexHaskell.cxx
@@ -172,11 +172,10 @@
          int style = styler.StyleAt(currentPos);
 
          if (options.foldIndentedImports) {
-            int ch = styler.SafeGetCharAt(currentPos);
             int eol_pos = styler.LineStart(line + 1) - 1;
 
-            while(currentPos < eol_pos) {
-               ch = styler[currentPos];
+            while (currentPos < eol_pos) {
+               int ch = styler[currentPos];
                style = styler.StyleAt(currentPos);
 
                if (ch == ' ' || ch == '\t'