purescript-emacs / purescript-mode

Emacs major mode and related tools for Purescript
20 stars 10 forks source link

purescript-indentation.el: don't modify buffer if indentation unchanged #18

Closed Hi-Angel closed 1 month ago

Hi-Angel commented 2 months ago

Currently calling indentation on a line that is already indented as expected results in buffer being modified despite no changes being actually done. Avoid this by checking if current indentation already matches the one we just calculated and only reindenting on mismatch.

Hi-Angel commented 2 months ago

Ping?

kritzcreek commented 1 month ago

Hey I approved running the CI and see some failures in there. Do you think you could look into fixing them? I'm happy to press merge then. thanks!