Cmd-w shows confirmation dialog when buffer modified