summaryrefslogtreecommitdiff
path: root/src/channel.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* patch 8.2.0842: MS-Windows: channel tests failv8.2.0842Bram Moolenaar2020-05-301-0/+6
| | | | | Problem: MS-Windows: channel tests fail. Solution: Adjust #ifdefs. (closes #6162)
* patch 8.2.0837: compiler warning for value set but not usedv8.2.0837Bram Moolenaar2020-05-291-3/+1
| | | | | Problem: Compiler warning for value set but not used. Solution: Move variable inside #ifdef.
* patch 8.2.0816: terminal test fails when compiled with Athenav8.2.0816Bram Moolenaar2020-05-241-0/+6
| | | | | | Problem: Terminal test fails when compiled with Athena. Solution: Do give an error when the GUI is not running. (hint by Dominique Pelle, closes #5928, closes #6132)
* patch 8.2.0751: Vim9: performance can be improvedv8.2.0751Bram Moolenaar2020-05-131-3/+3
| | | | | | Problem: Vim9: performance can be improved. Solution: Don't call break. Inline check for list materialize. Make an inline version of ga_grow().
* patch 8.2.0747: cannot forcefully close all popupsv8.2.0747Bram Moolenaar2020-05-131-2/+2
| | | | | | Problem: Cannot forcefully close all popups. Solution: Add the "force" argument to popup_clear(). Use it after running a test. Put back the check for a popup when editing a file.
* patch 8.2.0709: MS-Windows: compiler warning for int vs size_tv8.2.0709Bram Moolenaar2020-05-071-1/+1
| | | | | Problem: MS-Windows: compiler warning for int vs size_t. Solution: Add type cast. (Mike Williams)
* patch 8.2.0694: Haiku: channel and terminal do not workv8.2.0694Bram Moolenaar2020-05-031-2/+30
| | | | | | Problem: Haiku: channel and terminal do not work. Solution: Close files when the job has finished. (Ozaki Kiichi, closes #6039)
* patch 8.2.0689: when using getaddrinfo() the error message is unclearv8.2.0689Bram Moolenaar2020-05-031-2/+4
| | | | | | Problem: When using getaddrinfo() the error message is unclear. Solution: Use gai_strerror() to get the message. (Ozaki Kiichi, closes #6034)
* patch 8.2.0594: MS-Windows: cannot build with WINVER set to 0x0501v8.2.0594Bram Moolenaar2020-04-181-4/+10
| | | | | Problem: MS-Windows: cannot build with WINVER set to 0x0501. Solution: Only use inet_ntop() when available. (Ozaki Kiichi, closes #5946)
* patch 8.2.0559: clearing a struct is verbosev8.2.0559Bram Moolenaar2020-04-121-5/+5
| | | | | Problem: Clearing a struct is verbose. Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
* patch 8.2.0557: no IPv6 support for channelsv8.2.0557Bram Moolenaar2020-04-121-112/+231
| | | | | Problem: No IPv6 support for channels. Solution: Add IPv6 support. (Ozaki Kiichi, closes #5893)
* patch 8.2.0500: using the same loop in many placesv8.2.0500Bram Moolenaar2020-04-021-23/+28
| | | | | Problem: Using the same loop in many places. Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339)
* patch 8.2.0466: not parsing messages recursively breaks the govim pluginv8.2.0466Bram Moolenaar2020-03-281-30/+32
| | | | | | Problem: Not parsing messages recursively breaks the govim plugin. Solution: When called recursively do handle messages but do not close channels.
* patch 8.2.0455: cannot set the highlight group for a specific terminalv8.2.0455Bram Moolenaar2020-03-261-0/+15
| | | | | Problem: Cannot set the highlight group for a specific terminal. Solution: Add the "highlight" option to term_start(). (closes #5818)
* patch 8.2.0452: channel_parse_messages() fails when called recursivelyv8.2.0452Bram Moolenaar2020-03-261-2/+11
| | | | | Problem: channel_parse_messages() fails when called recursively. Solution: Return for a recursive call. (closes #5835)
* patch 8.2.0442: channel contents might be used after being freedv8.2.0442Bram Moolenaar2020-03-241-10/+9
| | | | | Problem: Channel contents might be used after being freed. Solution: Reset the job channel before freeing the channel.
* patch 8.2.0435: channel contents might be freed twicev8.2.0435Bram Moolenaar2020-03-231-1/+3
| | | | | | Problem: Channel contents might be freed twice. Solution: Call either channel_free_channel() or channel_free(), not both. (Nobuhiro Takasaki, closes #5835)
* patch 8.2.0181: problems parsing :term argumentsv8.2.0181Bram Moolenaar2020-01-301-14/+29
| | | | | | Problem: Problems parsing :term arguments. Solution: Improve parsing, fix memory leak, add tests. (Ozaki Kiichi, closes #5536)
* patch 8.2.0173: build fails with old compilerv8.2.0173Bram Moolenaar2020-01-291-2/+2
| | | | | Problem: Build fails with old compiler. Solution: Do not use anonymous unions. (John Marriott)
* patch 8.2.0159: non-materialized range() list causes problemsv8.2.0159Bram Moolenaar2020-01-271-0/+2
| | | | | Problem: Non-materialized range() list causes problems. (Fujiwara Takuya) Solution: Materialize the list where needed.
* patch 8.2.0149: maintaining a Vim9 branch separately is more workv8.2.0149Bram Moolenaar2020-01-261-1/+4
| | | | | Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.
* patch 8.2.0143: Coverity warning for possible use of NULL pointerv8.2.0143Bram Moolenaar2020-01-231-1/+1
| | | | | Problem: Coverity warning for possible use of NULL pointer. Solution: Check argv is not NULL.
* patch 8.2.0138: memory leak when starting a job failsv8.2.0138Bram Moolenaar2020-01-201-1/+5
| | | | | Problem: Memory leak when starting a job fails. Solution: Free the list of arguments. (Ozaki Kiichi, closes #5510)
* patch 8.2.0035: saving and restoring called_emsg is clumsyv8.2.0035Bram Moolenaar2019-12-231-4/+2
| | | | | Problem: Saving and restoring called_emsg is clumsy. Solution: Count the number of error messages.
* patch 8.2.0032: MS-Windows: test for blank job failsv8.2.0032Bram Moolenaar2019-12-221-3/+2
| | | | | Problem: MS-Windows: test for blank job fails Solution: Check before escaping.
* patch 8.2.0031: MS-Windows: test for empty job failsv8.2.0031Bram Moolenaar2019-12-221-2/+10
| | | | | Problem: MS-Windows: test for empty job fails Solution: Check for error message, make it also fail on Unix.
* patch 8.2.0029: MS-Windows: crash with empty job commandv8.2.0029Bram Moolenaar2019-12-211-0/+5
| | | | | Problem: MS-Windows: crash with empty job command. Solution: Check for NULL result. (Yasuhiro Matsumoto, closes #5390)
* patch 8.1.2368: using old C style commentsv8.1.2368Bram Moolenaar2019-11-301-273/+272
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2090: not clear why channel log file endsv8.1.2090Bram Moolenaar2019-09-271-0/+6
| | | | | Problem: Not clear why channel log file ends. Solution: Add a "closing" line.
* patch 8.1.2080: the terminal API is limited and can't be disabledv8.1.2080Bram Moolenaar2019-09-261-0/+8
| | | | | | Problem: The terminal API is limited and can't be disabled. Solution: Add term_setapi() to set the function prefix. (Ozaki Kiichi, closes #2907)
* patch 8.1.2075: get many log messages when waiting for a typed characterv8.1.2075Bram Moolenaar2019-09-251-7/+6
| | | | | Problem: Get many log messages when waiting for a typed character. Solution: Do not repeat the repeated messages when nothing happens.
* patch 8.1.2064: MS-Windows: compiler warnings for unused argumentsv8.1.2064Bram Moolenaar2019-09-211-3/+3
| | | | | Problem: MS-Windows: compiler warnings for unused arguments. Solution: Add UNUSED. (Yegappan Lakshmanan, closes #4963)
* patch 8.1.2047: cannot check the current statev8.1.2047Bram Moolenaar2019-09-161-0/+14
| | | | | Problem: Cannot check the current state. Solution: Add the state() function.
* patch 8.1.2046: SafeState may be triggered at the wrong momentv8.1.2046Bram Moolenaar2019-09-161-7/+0
| | | | | | Problem: SafeState may be triggered at the wrong moment. Solution: Move it up higher to after where messages are processed. Add a SafeStateAgain event to tigger there.
* patch 8.1.2044: no easy way to process postponed workv8.1.2044Bram Moolenaar2019-09-151-11/+22
| | | | | Problem: No easy way to process postponed work. (Paul Jolly) Solution: Add the SafeState autocommand event.
* patch 8.1.2001: some source files are too bigv8.1.2001Bram Moolenaar2019-09-071-3/+3
| | | | | | Problem: Some source files are too big. Solution: Move buffer and window related functions to evalbuffer.c and evalwindow.c. (Yegappan Lakshmanan, closes #4898)
* patch 8.1.1983: compiler nags for uninitialized variable and unused functionv8.1.1983Bram Moolenaar2019-09-041-39/+33
| | | | | Problem: Compiler nags for uninitialized variable and unused function. Solution: Add unnecessary initialization. Move function inside #ifdef.
* patch 8.1.1891: functions used in one file are globalv8.1.1891Bram Moolenaar2019-08-201-15/+23
| | | | | Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes #4840)
* patch 8.1.1800: function call functions have too many argumentsv8.1.1800Bram Moolenaar2019-08-031-15/+5
| | | | | Problem: Function call functions have too many arguments. Solution: Pass values in a funcexe_T struct.
* patch 8.1.1776: text added with a job isn't displayedv8.1.1776Bram Moolenaar2019-07-291-12/+19
| | | | | Problem: Text added with a job to another buffer isn't displayed. Solution: Update topline after adding a line. (closes #4745)
* patch 8.1.1653: ubsan warns for possibly passing NULL pointerv8.1.1653Bram Moolenaar2019-07-081-2/+2
| | | | | Problem: Ubsan warns for possibly passing NULL pointer. Solution: Skip code when length is zero. (Dominique Pelle, closes #4631)