Closed ghost closed 10 years ago
Thanks for raising the issue. I have tried with a range of indent based files and it seems to work. If you get some time do test it out and raise any issues you encounter.
Used for last 2 days. Seems to be working alright now, thanks for quick update :+1:
Like stated in title. Updated to last version (which now allows to collapse code in ruby and haml files) and collapsing is not working correctly. Arrows appear in incorrect lines - it looks like these appear line before comment and line before code block in function
That's sample file (controller, pages_controller.rb) generated by rails g scaffold page
(I've added line numbers, to clarify where arrows are shown)
Arrows appear only in lines 3 (blank line, before comment) 8 (blank line, before comment) 12 (blank line, before comment) 17 (blank line, before comment) 22 (blank line, before code block) 23 (code block, correctly) 24 (code block, correctly) 27 (code block, correctly)
Also, should appear in these lines 5, 14, 20 - functions
Also in .haml files when trying to collapse code, it collapse only part of a block, for example if structure looks like
When using arrow next to %body tag, it collapses all code until the empty line before .third tag