Mercurial > vim
comparison src/ex_cmds.c @ 580:90ee46d7f492 v7.0164
updated for version 7.0164
author | vimboss |
---|---|
date | Wed, 07 Dec 2005 21:07:59 +0000 |
parents | bdbdec22a225 |
children | 3686831cf3da |
comparison
equal
deleted
inserted
replaced
579:1ef373b13126 | 580:90ee46d7f492 |
---|---|
3418 */ | 3418 */ |
3419 lnum = curwin->w_cursor.lnum; | 3419 lnum = curwin->w_cursor.lnum; |
3420 topline = curwin->w_topline; | 3420 topline = curwin->w_topline; |
3421 if (!oldbuf) /* need to read the file */ | 3421 if (!oldbuf) /* need to read the file */ |
3422 { | 3422 { |
3423 #if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG) | 3423 #if defined(HAS_SWAP_EXISTS_ACTION) |
3424 swap_exists_action = SEA_DIALOG; | 3424 swap_exists_action = SEA_DIALOG; |
3425 #endif | 3425 #endif |
3426 curbuf->b_flags |= BF_CHECK_RO; /* set/reset 'ro' flag */ | 3426 curbuf->b_flags |= BF_CHECK_RO; /* set/reset 'ro' flag */ |
3427 | 3427 |
3428 /* | 3428 /* |
3433 retval = FAIL; | 3433 retval = FAIL; |
3434 #else | 3434 #else |
3435 (void)open_buffer(FALSE, eap); | 3435 (void)open_buffer(FALSE, eap); |
3436 #endif | 3436 #endif |
3437 | 3437 |
3438 #if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG) | 3438 #if defined(HAS_SWAP_EXISTS_ACTION) |
3439 if (swap_exists_action == SEA_QUIT) | 3439 if (swap_exists_action == SEA_QUIT) |
3440 retval = FAIL; | 3440 retval = FAIL; |
3441 handle_swap_exists(old_curbuf); | 3441 handle_swap_exists(old_curbuf); |
3442 #endif | 3442 #endif |
3443 } | 3443 } |