To use current buffer when modified is 0

Signed-off-by: apporc <appleorchard2000@gmail.com>