Home Download Buy Blog Forum Support

Bugs with folding

Bugs with folding

Postby tretretre on Thu Feb 23, 2012 1:06 pm

1
Functions with one line isn't possible to fold in javacsript/coffeescript.
EDIT: Except when folding globally, like Ctrl+k, Ctrl+1.

Example:
Code: Select all
foo = function () {
   bar();
}

foo = ->
   bar()


2
Code folds differently depending on if a empty line exists under the function.

Example:
Code: Select all
foo ->
   bar()
   baz()

folds to
Code: Select all
foo -> ... )

but
Code: Select all
foo ->
   bar()
   baz()
(empty line)

folds to
Code: Select all
foo -> ...


3
Code folds differently depending on indentation style. The banner style (https://en.wikipedia.org/wiki/Indent_style#Banner_style) for example, behaves really weird.

Example:
Code: Select all
foo(function () {
   bar();
   baz();
   });

folds to
Code: Select all
foo(function () ... ;


4
Not really a bug, but since folding isn't undoable, some confusion can occur when ctrl+z changes something inside some folded code which the used can't see.
tretretre
 
Posts: 23
Joined: Fri Oct 21, 2011 7:13 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 16 guests