comparison src/buffer.c @ 10108:7cb49e98d582 v7.4.2325

commit https://github.com/vim/vim/commit/30180b8dad5c1478e7920e56a71352cb318fadb0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 4 19:57:56 2016 +0200 patch 7.4.2325 Problem: Tiny build fails. Solution: Add #ifdef.
author Christian Brabandt <cb@256bit.org>
date Sun, 04 Sep 2016 20:00:08 +0200
parents 58e6dd1d8be3
children aa2219afd1c2
comparison
equal deleted inserted replaced
10107:3164c4afc969 10108:7cb49e98d582
474 } 474 }
475 else if (buf->b_p_bh[0] == 'u') /* 'bufhidden' == "unload" */ 475 else if (buf->b_p_bh[0] == 'u') /* 'bufhidden' == "unload" */
476 unload_buf = TRUE; 476 unload_buf = TRUE;
477 #endif 477 #endif
478 478
479 #ifdef FEAT_AUTOCMD
479 /* Disallow deleting the buffer when it is locked (already being closed or 480 /* Disallow deleting the buffer when it is locked (already being closed or
480 * halfway a command that relies on it). Unloading is allowed. */ 481 * halfway a command that relies on it). Unloading is allowed. */
481 if (buf->b_locked > 0 && (del_buf || wipe_buf)) 482 if (buf->b_locked > 0 && (del_buf || wipe_buf))
482 { 483 {
483 EMSG(_("E937: Attempt to delete a buffer that is in use")); 484 EMSG(_("E937: Attempt to delete a buffer that is in use"));
484 return; 485 return;
485 } 486 }
487 #endif
486 488
487 if (win != NULL 489 if (win != NULL
488 #ifdef FEAT_WINDOWS 490 #ifdef FEAT_WINDOWS
489 && win_valid_any_tab(win) /* in case autocommands closed the window */ 491 && win_valid_any_tab(win) /* in case autocommands closed the window */
490 #endif 492 #endif