Sublime Forum

swap_line.py should swap folded region also

#1

if there’re folded lines, then swap_line expand the folded region and swap line-by-line.
I think it would be better to modify Default\swap_line.py so that the whole folded region is swapped instead of line-by-line.

0 Likes

#2

I stumbled upon this while trying to figure out if I have two functions with their definitions folded and I try to swap them, things get all out of sorts. Apparently, if I move the bottom folded function up, I’m still moving through the upper function line-by-line (but I can’t really see this because that too is folded).

Any news on this then?

0 Likes