summaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-06 20:22:25 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-06 20:22:25 +0100
commit99ef06296f3c37490511c03786a2c8672e015c56 (patch)
tree1cfb2ed591d96815b580191223b5a55a382d7580 /src/memline.c
parent38fd4bb2842df7634823b99c655b3896a7a2e988 (diff)
downloadvim-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.c5
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;
}