fix calling SetLexer for fold, and add reset margin to Reset