comparison src/structs.h @ 10147:65afd399ffa7 v7.4.2344

commit https://github.com/vim/vim/commit/169ebb080454357279ad5ad21ac532deaec605e8 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 7 23:32:23 2016 +0200 patch 7.4.2344 Problem: The "Reading from channel output..." message can be unwanted. Appending to a buffer leaves an empty first line behind. Solution: Add the "out_msg" and "err_msg" options. Writing the first line overwrites the first, empty line.
author Christian Brabandt <cb@256bit.org>
date Wed, 07 Sep 2016 23:45:05 +0200
parents 3db463d4df25
children a09db7a4afe0
comparison
equal deleted inserted replaced
10146:f812ea9d4c28 10147:65afd399ffa7
1632 #define JO_BLOCK_WRITE 0x10000000 /* "block_write" */ 1632 #define JO_BLOCK_WRITE 0x10000000 /* "block_write" */
1633 #define JO_OUT_MODIFIABLE 0x20000000 /* "out_modifiable" */ 1633 #define JO_OUT_MODIFIABLE 0x20000000 /* "out_modifiable" */
1634 #define JO_ERR_MODIFIABLE 0x40000000 /* "err_modifiable" (JO_OUT_ << 1) */ 1634 #define JO_ERR_MODIFIABLE 0x40000000 /* "err_modifiable" (JO_OUT_ << 1) */
1635 #define JO_ALL 0x7fffffff 1635 #define JO_ALL 0x7fffffff
1636 1636
1637 #define JO2_OUT_MSG 0x0001 /* "out_msg" */
1638 #define JO2_ERR_MSG 0x0002 /* "err_msg" (JO_OUT_ << 1) */
1639 #define JO2_ALL 0x0003
1640
1637 #define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE) 1641 #define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE)
1638 #define JO_CB_ALL \ 1642 #define JO_CB_ALL \
1639 (JO_CALLBACK + JO_OUT_CALLBACK + JO_ERR_CALLBACK + JO_CLOSE_CALLBACK) 1643 (JO_CALLBACK + JO_OUT_CALLBACK + JO_ERR_CALLBACK + JO_CLOSE_CALLBACK)
1640 #define JO_TIMEOUT_ALL (JO_TIMEOUT + JO_OUT_TIMEOUT + JO_ERR_TIMEOUT) 1644 #define JO_TIMEOUT_ALL (JO_TIMEOUT + JO_OUT_TIMEOUT + JO_ERR_TIMEOUT)
1641 1645
1643 * Options for job and channel commands. 1647 * Options for job and channel commands.
1644 */ 1648 */
1645 typedef struct 1649 typedef struct
1646 { 1650 {
1647 int jo_set; /* JO_ bits for values that were set */ 1651 int jo_set; /* JO_ bits for values that were set */
1652 int jo_set2; /* JO2_ bits for values that were set */
1648 1653
1649 ch_mode_T jo_mode; 1654 ch_mode_T jo_mode;
1650 ch_mode_T jo_in_mode; 1655 ch_mode_T jo_in_mode;
1651 ch_mode_T jo_out_mode; 1656 ch_mode_T jo_out_mode;
1652 ch_mode_T jo_err_mode; 1657 ch_mode_T jo_err_mode;
1654 job_io_T jo_io[4]; /* PART_OUT, PART_ERR, PART_IN */ 1659 job_io_T jo_io[4]; /* PART_OUT, PART_ERR, PART_IN */
1655 char_u jo_io_name_buf[4][NUMBUFLEN]; 1660 char_u jo_io_name_buf[4][NUMBUFLEN];
1656 char_u *jo_io_name[4]; /* not allocated! */ 1661 char_u *jo_io_name[4]; /* not allocated! */
1657 int jo_io_buf[4]; 1662 int jo_io_buf[4];
1658 int jo_modifiable[4]; 1663 int jo_modifiable[4];
1664 int jo_message[4];
1659 channel_T *jo_channel; 1665 channel_T *jo_channel;
1660 1666
1661 linenr_T jo_in_top; 1667 linenr_T jo_in_top;
1662 linenr_T jo_in_bot; 1668 linenr_T jo_in_bot;
1663 1669