Commit Graph

4 Commits

Author SHA1 Message Date
Antonio Scandurra
c99ac52152 Fix folding for lines that contain a comment
In attempting to optimize the performance of `isFoldableAtBufferRow` in
3c87b74, we mistakenly introduced a bug that caused lines that contained
a comment but didn't start with one to not be foldable anymore.

With this commit we are restoring the previous behavior, thus only
disabling folding for lines that start with a comment (ignoring leading
whitespaces).
2017-08-17 14:28:30 +02:00
Koki Takahashi
fdac1e4663 🐛 Treat empty comment line as comment and add tests (Fix #4140) 2016-02-29 19:51:57 -07:00
Nathan Sobo
ed93695d64 Add a foldable indicator for multi-line comments 2014-01-18 12:08:37 -07:00
Ben Ogle
519c514092 add a new sample with some comments 2013-07-24 12:05:15 -07:00