jmacdonald / amp

A complete text editor for your terminal.
https://amp.rs
Other
3.73k stars 105 forks source link

Saving a new buffer doesn't highlight syntax #97

Closed sophiajt closed 6 years ago

sophiajt commented 6 years ago

If I create a new buffer (B), paste some source code, and then save it as a file (s then give it a filename with an .rs extension), the buffer doesn't re-colour.

Would be nice if the syntax highlighter picked up the change when it learns the filename during save.