candid82/sublime-pretty-clojure

New line is inserted when saving the file while some text is selected

Closed this issue · 3 comments

It's a weird problem. While saving the file (using Cmd+s) the subsequent text after selection is moved to the next.

Screen grab of the problem

Sublime Text: v3.2.2 b3211 (macOS)

I also tried with disabling plugins which may alter the view, like "TabNine", "BracketHighlighter",.... The problem remains.

This is because it tries to format the selected text only. This is a bit confusing, so I changed it to always format the entire file unless "format_selected" option is set to true: 3276fe8

Btw, what color scheme and font are these?

Thanks @candid82!

I'm using Solarized - Light (with some changes) together Recursive Mono - Duotone fonts.