comparison src/memline.c @ 748:605c8fbb13dd

updated for version 7.0222
author vimboss
date Sun, 12 Mar 2006 22:18:00 +0000
parents e180933b876a
children d8f905020502
comparison
equal deleted inserted replaced
747:8fa930354536 748:605c8fbb13dd
522 522
523 mfp = buf->b_ml.ml_mfp; 523 mfp = buf->b_ml.ml_mfp;
524 if (mfp == NULL || mfp->mf_fd >= 0 || !buf->b_p_swf) 524 if (mfp == NULL || mfp->mf_fd >= 0 || !buf->b_p_swf)
525 return; /* nothing to do */ 525 return; /* nothing to do */
526 526
527 #ifdef FEAT_SYN_HL 527 #ifdef FEAT_SPELL
528 /* For a spell buffer use a temp file name. */ 528 /* For a spell buffer use a temp file name. */
529 if (buf->b_spell) 529 if (buf->b_spell)
530 { 530 {
531 fname = vim_tempname('s'); 531 fname = vim_tempname('s');
532 if (fname != NULL) 532 if (fname != NULL)
2122 if (curbuf->b_ml.ml_line_lnum != 0) 2122 if (curbuf->b_ml.ml_line_lnum != 0)
2123 ml_flush_line(curbuf); 2123 ml_flush_line(curbuf);
2124 return ml_append_int(curbuf, lnum, line, len, newfile, FALSE); 2124 return ml_append_int(curbuf, lnum, line, len, newfile, FALSE);
2125 } 2125 }
2126 2126
2127 #if defined(FEAT_SYN_HL) || defined(PROTO) 2127 #if defined(FEAT_SPELL) || defined(PROTO)
2128 /* 2128 /*
2129 * Like ml_append() but for an arbitrary buffer. The buffer must already have 2129 * Like ml_append() but for an arbitrary buffer. The buffer must already have
2130 * a memline. 2130 * a memline.
2131 */ 2131 */
2132 int 2132 int