diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-06 20:22:25 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-06 20:22:25 +0100 |
commit | 99ef06296f3c37490511c03786a2c8672e015c56 (patch) | |
tree | 1cfb2ed591d96815b580191223b5a55a382d7580 /src/memline.c | |
parent | 38fd4bb2842df7634823b99c655b3896a7a2e988 (diff) | |
download | vim-git-99ef06296f3c37490511c03786a2c8672e015c56.tar.gz |
patch 7.4.1502v7.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.
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/memline.c b/src/memline.c index 17062823b..334392b36 100644 --- a/src/memline.c +++ b/src/memline.c @@ -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; } |