comparison src/undo.c @ 16089:4411c38f3d16 v8.1.1049

patch 8.1.1049: when user tries to exit with CTRL-C message is confusing commit https://github.com/vim/vim/commit/a84a3dd6635fcd2e07f510cba6a999585dcc381a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 25 22:21:24 2019 +0100 patch 8.1.1049: when user tries to exit with CTRL-C message is confusing Problem: When user tries to exit with CTRL-C message is confusing. Solution: Only mention ":qa!" when there is a changed buffer. (closes https://github.com/vim/vim/issues/4163)
author Bram Moolenaar <Bram@vim.org>
date Mon, 25 Mar 2019 22:30:05 +0100
parents 7fad90423bd2
children d45e42b45470
comparison
equal deleted inserted replaced
16088:5dd54a14decf 16089:4411c38f3d16
3529 #endif 3529 #endif
3530 return bufIsChangedNotTerm(buf); 3530 return bufIsChangedNotTerm(buf);
3531 } 3531 }
3532 3532
3533 /* 3533 /*
3534 * Return TRUE if any buffer has changes. Also buffers that are not written.
3535 */
3536 int
3537 anyBufIsChanged(void)
3538 {
3539 buf_T *buf;
3540
3541 FOR_ALL_BUFFERS(buf)
3542 if (bufIsChanged(buf))
3543 return TRUE;
3544 }
3545
3546 /*
3534 * Like bufIsChanged() but ignoring a terminal window. 3547 * Like bufIsChanged() but ignoring a terminal window.
3535 */ 3548 */
3536 int 3549 int
3537 bufIsChangedNotTerm(buf_T *buf) 3550 bufIsChangedNotTerm(buf_T *buf)
3538 { 3551 {