1
0
forked from aniani/vim

patch 7.4.1502

Problem:    Writing last-but-one line of buffer to a channel isn't implemented
            yet.
Solution:   Implement it.  Fix leaving a swap file behind.
This commit is contained in:
Bram Moolenaar
2016-03-06 20:22:25 +01:00
parent 38fd4bb284
commit 99ef06296f
5 changed files with 168 additions and 59 deletions

View File

@@ -3059,6 +3059,11 @@ ml_append_int(
(char_u *)"\n", 1);
}
#endif
#ifdef FEAT_CHANNEL
if (buf->b_write_to_channel)
channel_write_new_lines(buf);
#endif
return OK;
}