summaryrefslogtreecommitdiff
path: root/src/channel.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.0777: code is indented too muchv9.0.0777Yegappan Lakshmanan2022-10-161-234/+236
| | | | | Problem: Code is indented too much. Solution: Use an early return. (Yegappan Lakshmanan, closes #11386)
* patch 9.0.0394: Cygwin: multibyte characters may be broken in terminal windowv9.0.0394K.Takata2022-09-061-6/+20
| | | | | | Problem: Cygwin: multibyte characters may be broken in terminal window. Solution: Adjust how to read and write on the channel. (Ken Takata, closes #11063)
* patch 9.0.0350: :echowindow does not work in a compiled functionv9.0.0350Bram Moolenaar2022-09-011-5/+1
| | | | | Problem: :echowindow does not work in a compiled function. Solution: Handle the expression at compile time.
* patch 9.0.0335: checks for Dictionary argument often give a vague errorv9.0.0335Yegappan Lakshmanan2022-08-301-8/+3
| | | | | Problem: Checks for Dictionary argument often give a vague error message. Solution: Give a useful error message. (Yegappan Lakshmanan, closes #11009)
* patch 9.0.0206: redraw flags are not named specificallyv9.0.0206Bram Moolenaar2022-08-141-1/+1
| | | | | Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
* patch 8.2.5107: some callers of rettv_list_alloc() check for not OKv8.2.5107Bram Moolenaar2022-06-161-1/+1
| | | | | | Problem: Some callers of rettv_list_alloc() check for not OK. (Christ van Willegen) Solution: Use "==" instead of "!=" when checking the return value.
* patch 8.2.5056: the channel log only contains some of the raw terminal outputv8.2.5056Bram Moolenaar2022-06-041-2/+8
| | | | | Problem: The channel log only contains some of the raw terminal output. Solution: Add the "o" flag to log all terminal output. Use it for "--log".
* patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar2022-05-091-1/+1
| | | | | Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
* patch 8.2.4909: MODE_ enum entries names are too genericv8.2.4909Bram Moolenaar2022-05-071-36/+38
| | | | | Problem: MODE_ enum entries names are too generic. Solution: use CH_MODE_.
* patch 8.2.4830: possible endless loop if there is unused typaheadv8.2.4830Bram Moolenaar2022-04-261-12/+36
| | | | | Problem: Possible endless loop if there is unused typahead. Solution: Only loop when the typeahead changed.
* patch 8.2.4788: large payload for LSP message not testedv8.2.4788Yegappan Lakshmanan2022-04-191-0/+2
| | | | | | Problem: Large payload for LSP message not tested. Solution: Add a test with a large LSP payload. (Yegappan Lakshmanan, closes #10223)
* patch 8.2.4780: parsing an LSP message fails when it is splitv8.2.4780Yegappan Lakshmanan2022-04-181-9/+24
| | | | | | Problem: Parsing an LSP message fails when it is split. Solution: Collapse the received data before parsing. (Yegappan Lakshmanan, closes #10215)
* patch 8.2.4771: Coverity warns for not checking return valuev8.2.4771Bram Moolenaar2022-04-171-1/+2
| | | | | Problem: Coverity warns for not checking return value. Solution: Check return value of rettv_dict_alloc().
* patch 8.2.4758: when using an LSP channel want to get the message IDv8.2.4758Yegappan Lakshmanan2022-04-161-1/+12
| | | | | | Problem: When using an LSP channel want to get the message ID. Solution: Have ch_sendexpr() return the ID. (Yegappan Lakshmanan, closes #10202)
* patch 8.2.4753: error from setting an option is silently ignoredv8.2.4753Bram Moolenaar2022-04-151-2/+3
| | | | | Problem: Error from setting an option is silently ignored. Solution: Handle option value errors better. Fix uses of N_().
* patch 8.2.4742: there is no way to start logging very early in startupv8.2.4742Bram Moolenaar2022-04-121-1/+4
| | | | | | | Problem: There is no way to start logging very early in startup. Solution: Add the --log argument. Include the date in the start message in the log file. Avoid a duplicate message when forking. Log an executed shell command.
* patch 8.2.4699: hard to reproduce hang when reading from a channelv8.2.4699LemonBoy2022-04-051-0/+5
| | | | | | Problem: Hard to reproduce hang when reading from a channel. Solution: Check for readahead before starting to wait. (closes #10093, closes #7781, closes #6364)
* patch 8.2.4684: cannot open a channel on a Unix domain socketv8.2.4684LemonBoy2022-04-041-19/+113
| | | | | Problem: Cannot open a channel on a Unix domain socket. Solution: Add Unix domain socket support. (closes #10062)
* patch 8.2.4683: verbose check with dict_find() to see if a key is presentv8.2.4683Yegappan Lakshmanan2022-04-041-3/+2
| | | | | Problem: Verbose check with dict_find() to see if a key is present. Solution: Add dict_has_key(). (Yegappan Lakshmanan, closes #10074)
* patch 8.2.4648: handling LSP messages is a bit slowv8.2.4648Yegappan Lakshmanan2022-03-301-44/+252
| | | | | | Problem: Handling LSP messages is a bit slow. Solution: Included support for LSP messages. (Yegappan Lakshmanan, closes #10025)
* patch 8.2.4241: some type casts are redundantv8.2.4241=?UTF-8?q?Dundar=20G=C3=B6c?=2022-01-281-1/+1
| | | | | Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
* patch 8.2.4043: using int for second argument of ga_init2()v8.2.4043Bram Moolenaar2022-01-081-1/+1
| | | | | Problem: Using int for second argument of ga_init2(). Solution: Remove unnessary type cast (int) when using sizeof().
* patch 8.2.4012: error messages are spread outv8.2.4012Bram Moolenaar2022-01-051-16/+13
| | | | | Problem: Error messages are spread out. Solution: Move the last error messages to errors.h.
* patch 8.2.4003: error messages are spread outv8.2.4003Bram Moolenaar2022-01-041-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar2022-01-011-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar2021-12-311-6/+6
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3763: when editing the cmdline a callback may cause a scroll upv8.2.3763Bram Moolenaar2021-12-091-2/+2
| | | | | | | Problem: When editing the command line a FocusLost callback may cause the screen to scroll up. Solution: Do not redraw at the last line but at the same place where the command line was before. (closes #9295)
* patch 8.2.3750: error messages are everywherev8.2.3750Bram Moolenaar2021-12-051-2/+4
| | | | | Problem: Error messages are everywhere. Solution: Move more error messages to errors.h and adjust the names.
* patch 8.2.3640: freeze when calling term_wait() in a close callbackv8.2.3640Bram Moolenaar2021-11-211-0/+4
| | | | | Problem: Freeze when calling term_wait() in a close callback. Solution: Set a "closing" flag to tell term_wait() to return. (closes #9152)
* patch 8.2.3415: Vim9: not all function argument types are properly checkedv8.2.3415Yegappan Lakshmanan2021-09-081-1/+1
| | | | | | Problem: Vim9: Not all function argument types are properly checked. Solution: Add and improve argument type checks. (Yegappan Lakshmanan, closes #8839)
* patch 8.2.3320: some local functions are not staticv8.2.3320Yegappan Lakshmanan2021-08-091-1/+1
| | | | | | Problem: Some local functions are not static. Solution: Add "static". Move snprintf() related code to strings.c. (Yegappan Lakshmanan, closes #8734)
* patch 8.2.3274: macro for printf format check can be simplifiedv8.2.3274Bram Moolenaar2021-08-021-5/+1
| | | | | Problem: Macro for printf format check can be simplified. Solution: Add ATTRIBUTE_FORMAT_PRINTF(). (Dominique Pellé, issue #8635)
* patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan2021-07-271-6/+41
| | | | | | Problem: Vim9: runtime and compile time type checks are not the same. Solution: Add more runtime type checks for builtin functions. (Yegappan Lakshmanan, closes #8646)
* patch 8.2.3211: Vim9: argument types are not checked at compile timev8.2.3211Yegappan Lakshmanan2021-07-241-1/+7
| | | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. Fix type check for matchaddpos(). (Yegappan Lakshmanan, closes #8619)
* patch 8.2.3188: Vim9: argument types are not checked at compile timev8.2.3188Yegappan Lakshmanan2021-07-201-1/+20
| | | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, also at runtime. (Yegappan Lakshmanan, closes #8587)
* patch 8.2.3135: Vim9: builtin function arguments not checked at compile timev8.2.3135Yegappan Lakshmanan2021-07-101-0/+5
| | | | | Problem: Vim9: builtin function arguments not checked at compile time. Solution: Add more type checks. (Yegappan Lakshmanan, closes #8539)
* patch 8.2.3082: a channel command "echoerr" does not show anythingv8.2.3082Bram Moolenaar2021-07-011-3/+8
| | | | | | Problem: A channel command "echoerr" does not show anything. Solution: Do not use silent errors when using an "echoerr" command. (closes #8494)
* patch 8.2.3081: cannot catch errors in a channel commandv8.2.3081Alisue2021-06-301-2/+3
| | | | | Problem: Cannot catch errors in a channel command. Solution: Instead of skipping the error make it silent. (closes #8477)
* patch 8.2.3069: error messages are spread outv8.2.3069Bram Moolenaar2021-06-271-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
* patch 8.2.2944: Vim9: no error when using job or channel as a stringv8.2.2944Bram Moolenaar2021-06-051-0/+18
| | | | | Problem: Vim9: no error when using job or channel as a string. Solution: Be more strict about conversion to string. (closes #8312)
* patch 8.2.2666: Vim9: not enough function arguments checked for stringv8.2.2666Bram Moolenaar2021-03-271-0/+5
| | | | | Problem: Vim9: not enough function arguments checked for string. Solution: Check in ch_logfile(), char2nr() and others.
* patch 8.2.1661: cannot connect to 127.0.0.1 for host with only IPv6 addressesv8.2.1661Bram Moolenaar2020-09-111-2/+2
| | | | | | Problem: Cannot connect to 127.0.0.1 for host with only IPv6 addresses. Solution: pass AI_V4MAPPED flag to getaddrinfo. (Filipe Brandenburger, closes #6931)
* patch 8.2.1654: when job writes to hidden buffer current window is wrongv8.2.1654Bram Moolenaar2020-09-101-9/+9
| | | | | | | Problem: When job writes to hidden buffer current window has display errors. (Johnny McArthur) Solution: Use aucmd_prepbuf() instead of switch_to_win_for_buf(). (closes #6925)
* patch 8.2.1597: the channel source file is too bigv8.2.1597Bram Moolenaar2020-09-051-1841/+4
| | | | | Problem: The channel source file is too big. Solution: Move job related code to a new source file.
* patch 8.2.1588: cannot read back the prompt of a prompt bufferv8.2.1588Bram Moolenaar2020-09-041-0/+23
| | | | | Problem: Cannot read back the prompt of a prompt buffer. Solution: Add prompt_getprompt(). (Ben Jackson, closes #6851)
* patch 8.2.1545: ch_logfile() is unclear about closing when forkingv8.2.1545Bram Moolenaar2020-08-301-1/+4
| | | | | Problem: ch_logfile() is unclear about closing when forking. Solution: Adjust the log messages.
* patch 8.2.1513: cannot interrupt shell used for filename expansionv8.2.1513Bram Moolenaar2020-08-231-1/+1
| | | | | | Problem: Cannot interrupt shell used for filename expansion. (Dominique Pellé) Solution: Do set tmode in mch_delay(). (closes #6770)
* patch 8.2.1475: Vim9: can't use v:true for option flagsv8.2.1475Bram Moolenaar2020-08-171-7/+7
| | | | | Problem: Vim9: can't use v:true for option flags. Solution: Add tv_get_bool_chk(). (closes #6725)
* patch 8.2.1255: cannot use a lambda with quickfix functionsv8.2.1255Bram Moolenaar2020-07-201-21/+0
| | | | | Problem: Cannot use a lambda with quickfix functions. Solution: Add support for lambda. (Yegappan Lakshmanan, closes #6499)
* patch 8.2.0928: many type casts are used for vim_strnsave()v8.2.0928Bram Moolenaar2020-06-071-2/+2
| | | | | | Problem: Many type casts are used for vim_strnsave(). Solution: Make the length argument size_t instead of int. (Ken Takata, closes #5633) Remove some type casts.