yasuyk / web-beautify

Format HTML, CSS and JavaScript/JSON by js-beautify
GNU General Public License v3.0
219 stars 21 forks source link

web-beautify mark behavior on emacs 25 #20

Closed j-em closed 7 years ago

j-em commented 8 years ago

image

The mark is behaving weirdly after using the function to format JS.

I think the problem is here: https://github.com/yasuyk/web-beautify/blob/master/web-beautify.el#L121

When I removed that line, everything was fine except for the broken syntax highlighting when using web-mode.

lukertty commented 7 years ago

I have the same problem.

I also removed that line..

yasuyk commented 7 years ago

@j-em @lukertty Could you let me know following the information?

I can not reproduce this issue. 😰

lukertty commented 7 years ago

@yasuyk

Before removing (web-beautify-reload)

1

After removing (web-beautify-reload)

2

If I replace (web-beautify-reload) with(js2-mode), the issue can be reproduced, but if I just run js2-mode in main.js file, then there is no problem.

😳

ghost commented 7 years ago

Same here:

yasuyk commented 7 years ago

@lukertty, @vxcamiloxv Thank you for information. I reproduce this issue. I use emacs with no window, in other words, use emacs in Terminal. This issue is not occurred on emacs in Terminal.

yasuyk commented 7 years ago

This issue is fixed at 50bc8cb. If something wrong occurs, Reopen this issue.

ghost commented 7 years ago

thanks