Mercurial > vim
changeset 10320:6ab770e97152 v8.0.0055
commit https://github.com/vim/vim/commit/3a117e19e02bf29cfc5e398470dd7851ae3d6803
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 30 21:57:52 2016 +0100
patch 8.0.0055
Problem: Minor comment and style deficiencies.
Solution: Update comments and fix style.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 30 Oct 2016 22:00:05 +0100 |
parents | 169a62d5bcb9 |
children | a6b2b5a27cbc |
files | src/buffer.c src/misc2.c src/os_unix.c src/version.c |
diffstat | 4 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.c +++ b/src/buffer.c @@ -451,7 +451,7 @@ close_buffer( int nwindows; bufref_T bufref; # ifdef FEAT_WINDOWS - int is_curwin = (curwin!= NULL && curwin->w_buffer == buf); + int is_curwin = (curwin != NULL && curwin->w_buffer == buf); win_T *the_curwin = curwin; tabpage_T *the_curtab = curtab; # endif @@ -1649,10 +1649,11 @@ set_curbuf(buf_T *buf, int action) #ifdef FEAT_AUTOCMD if (!apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf) # ifdef FEAT_EVAL - || (bufref_valid(&bufref) && !aborting())) + || (bufref_valid(&bufref) && !aborting()) # else - || bufref_valid(&bufref)) + || bufref_valid(&bufref) # endif + ) #endif { #ifdef FEAT_SYN_HL
--- a/src/misc2.c +++ b/src/misc2.c @@ -6256,6 +6256,7 @@ has_non_ascii(char_u *s) #if defined(MESSAGE_QUEUE) || defined(PROTO) /* * Process messages that have been queued for netbeans or clientserver. + * Also check if any jobs have ended. * These functions can call arbitrary vimscript and should only be called when * it is safe to do so. */