The implementation of checking if a buffer is dirty seems a bit... odd. It compares the saved text with the buffer text. Seems like a bool should do fine based on other operations I saw in that file.
https://github.com/zyedidia/micro/blob/master/src/buffer.go#...