Mercurial > vim
comparison src/memline.c @ 8422:5d2c84be23b5 v7.4.1502
commit https://github.com/vim/vim/commit/99ef06296f3c37490511c03786a2c8672e015c56
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 6 20:22:25 2016 +0100
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 06 Mar 2016 20:30:04 +0100 |
parents | 05b88224cea1 |
children | caed4b2d305f |
comparison
equal
deleted
inserted
replaced
8421:4be5f7dd51dc | 8422:5d2c84be23b5 |
---|---|
3057 netbeans_inserted(buf, lnum+1, (colnr_T)0, line, (int)STRLEN(line)); | 3057 netbeans_inserted(buf, lnum+1, (colnr_T)0, line, (int)STRLEN(line)); |
3058 netbeans_inserted(buf, lnum+1, (colnr_T)STRLEN(line), | 3058 netbeans_inserted(buf, lnum+1, (colnr_T)STRLEN(line), |
3059 (char_u *)"\n", 1); | 3059 (char_u *)"\n", 1); |
3060 } | 3060 } |
3061 #endif | 3061 #endif |
3062 #ifdef FEAT_CHANNEL | |
3063 if (buf->b_write_to_channel) | |
3064 channel_write_new_lines(buf); | |
3065 #endif | |
3066 | |
3062 return OK; | 3067 return OK; |
3063 } | 3068 } |
3064 | 3069 |
3065 /* | 3070 /* |
3066 * Replace line lnum, with buffering, in current buffer. | 3071 * Replace line lnum, with buffering, in current buffer. |