summaryrefslogtreecommitdiffstats
path: root/src/channel.c
AgeCommit message (Collapse)Author
2019-12-22patch 8.2.0032: MS-Windows: test for blank job failsv8.2.0032Bram Moolenaar
Problem: MS-Windows: test for blank job fails Solution: Check before escaping.
2019-12-22patch 8.2.0031: MS-Windows: test for empty job failsv8.2.0031Bram Moolenaar
Problem: MS-Windows: test for empty job fails Solution: Check for error message, make it also fail on Unix.
2019-12-21patch 8.2.0029: MS-Windows: crash with empty job commandv8.2.0029Bram Moolenaar
Problem: MS-Windows: crash with empty job command. Solution: Check for NULL result. (Yasuhiro Matsumoto, closes #5390)
2019-11-30patch 8.1.2368: using old C style commentsv8.1.2368Bram Moolenaar
Problem: Using old C style comments. Solution: Use // comments where appropriate.
2019-09-27patch 8.1.2090: not clear why channel log file endsv8.1.2090Bram Moolenaar
Problem: Not clear why channel log file ends. Solution: Add a "closing" line.
2019-09-26patch 8.1.2080: the terminal API is limited and can't be disabledv8.1.2080Bram Moolenaar
Problem: The terminal API is limited and can't be disabled. Solution: Add term_setapi() to set the function prefix. (Ozaki Kiichi, closes #2907)
2019-09-25patch 8.1.2075: get many log messages when waiting for a typed characterv8.1.2075Bram Moolenaar
Problem: Get many log messages when waiting for a typed character. Solution: Do not repeat the repeated messages when nothing happens.
2019-09-21patch 8.1.2064: MS-Windows: compiler warnings for unused argumentsv8.1.2064Bram Moolenaar
Problem: MS-Windows: compiler warnings for unused arguments. Solution: Add UNUSED. (Yegappan Lakshmanan, closes #4963)
2019-09-16patch 8.1.2047: cannot check the current statev8.1.2047Bram Moolenaar
Problem: Cannot check the current state. Solution: Add the state() function.
2019-09-16patch 8.1.2046: SafeState may be triggered at the wrong momentv8.1.2046Bram Moolenaar
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.
2019-09-15patch 8.1.2044: no easy way to process postponed workv8.1.2044Bram Moolenaar
Problem: No easy way to process postponed work. (Paul Jolly) Solution: Add the SafeState autocommand event.
2019-09-07patch 8.1.2001: some source files are too bigv8.1.2001Bram Moolenaar
Problem: Some source files are too big. Solution: Move buffer and window related functions to evalbuffer.c and evalwindow.c. (Yegappan Lakshmanan, closes #4898)
2019-09-04patch 8.1.1983: compiler nags for uninitialized variable and unused functionv8.1.1983Bram Moolenaar
Problem: Compiler nags for uninitialized variable and unused function. Solution: Add unnecessary initialization. Move function inside #ifdef.
2019-08-20patch 8.1.1891: functions used in one file are globalv8.1.1891Bram Moolenaar
Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes #4840)
2019-08-03patch 8.1.1800: function call functions have too many argumentsv8.1.1800Bram Moolenaar
Problem: Function call functions have too many arguments. Solution: Pass values in a funcexe_T struct.
2019-07-29patch 8.1.1776: text added with a job isn't displayedv8.1.1776Bram Moolenaar
Problem: Text added with a job to another buffer isn't displayed. Solution: Update topline after adding a line. (closes #4745)
2019-07-08patch 8.1.1653: ubsan warns for possibly passing NULL pointerv8.1.1653Bram Moolenaar
Problem: Ubsan warns for possibly passing NULL pointer. Solution: Skip code when length is zero. (Dominique Pelle, closes #4631)
2019-06-28patch 8.1.1605: Vim may delay processing messages on a json channelv8.1.1605Bram Moolenaar
Problem: Vim may delay processing messages on a json channel. (Pontus Leitzler) Solution: Try parsing json when checking if there is readahead.
2019-06-24patch 8.1.1584: the evalfunc.c file is getting too bigv8.1.1584Bram Moolenaar
Problem: The evalfunc.c file is getting too big. Solution: Move channel and job related functions to channel.c.
2019-06-20patch 8.1.1575: callbacks may be garbage collectedv8.1.1575Bram Moolenaar
Problem: Callbacks may be garbage collected. Solution: Set reference in callbacks. (Ozaki Kiichi, closes #4564)
2019-06-09patch 8.1.1512: ch_evalexpr() hangs when used recursivelyv8.1.1512Bram Moolenaar
Problem: ch_evalexpr() hangs when used recursively. (Paul Jolly) Solution: Change ch_block_id from a single number to a list of IDs to wait on.
2019-06-03patch 8.1.1457: cannot reuse a buffer when loading a screen dumpv8.1.1457Bram Moolenaar
Problem: Cannot reuse a buffer when loading a screen dump. Solution: Add the "bufnr" option.
2019-06-01patch 8.1.1437: code to handle callbacks is duplicatedv8.1.1437Bram Moolenaar
Problem: Code to handle callbacks is duplicated. Solution: Add callback_T and functions to deal with it.
2019-05-28patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar
Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
2019-05-25patch 8.1.1393: unnecessary type castsv8.1.1393Bram Moolenaar
Problem: Unnecessary type casts. Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
2019-05-24patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386Bram Moolenaar
Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
2019-05-24patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar
Problem: Using "int" for alloc() often results in compiler warnings. Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim only works with 32 bit ints anyway.
2019-05-11patch 8.1.1319: computing function length name in many placesv8.1.1319Bram Moolenaar
Problem: Computing function length name in many places. Solution: compute name length in call_func().
2019-05-09patch 8.1.1312: Coverity warning for using uninitialized variablev8.1.1312Bram Moolenaar
Problem: Coverity warning for using uninitialized variable. Solution: Clear exarg_T.
2019-04-28patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exev8.1.1230Bram Moolenaar
Problem: A lot of code is shared between vim.exe and gvim.exe. Solution: Optionally put the shared code in vim.dll. (Ken Takata, closes #4287)
2019-04-21patch 8.1.1194: typos and small problems in source filesv8.1.1194Bram Moolenaar
Problem: Typos and small problems in source files. Solution: Small fixes.
2019-04-12patch 8.1.1158: json encoded string is sometimes missing the final NULv8.1.1158Bram Moolenaar
Problem: Json encoded string is sometimes missing the final NUL. Solution: Add the NUL. Also for log messages.
2019-03-21patch 8.1.1032: warnings from clang static analyzerv8.1.1032Bram Moolenaar
Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan) Solution: Fix relevant warnings.
2019-03-04patch 8.1.0993: ch_read() may return garbage if terminating NL is missingv8.1.0993Bram Moolenaar
Problem: ch_read() may return garbage if terminating NL is missing. Solution: Add terminating NUL. (Ozaki Kiichi, closes #4065)
2019-02-20patch 8.1.0960: when using ConPTY garbage collection has undefined behaviorv8.1.0960Bram Moolenaar
Problem: When using ConPTY garbage collection has undefined behavior. Solution: Free the channel in a better way. (Nobuhiro Takasaki, closes #4020)
2019-02-17patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar
Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and others. Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the GUI build. (Hirohito Higashi, closes #3932)
2019-02-10patch 8.1.0889: MS-Windows: a channel write may hangv8.1.0889Bram Moolenaar
Problem: MS-Windows: a channel write may hang. Solution: Check for WriteFile() not writing anything. (Yasuhiro Matsumoto, closes #3920)
2019-02-08patch 8.1.0880: MS-Windows: inconsistent selection of winpty/conptyv8.1.0880Bram Moolenaar
Problem: MS-Windows: inconsistent selection of winpty/conpty. Solution: Name option 'termwintype', use ++type argument and "term_pty" for term_start(). (Hirohito Higashi, closes #3915)
2019-02-03patch 8.1.0870: Vim doesn't use the new ConPTY support in Windows 10v8.1.0870Bram Moolenaar
Problem: Vim doesn't use the new ConPTY support in Windows 10. Solution: Use ConPTY support, if available. (Nobuhiro Takasaki, closes #3794)
2019-01-31patch 8.1.0863: cannot see what signal caused a job to endv8.1.0863Bram Moolenaar
Problem: Cannot see what signal caused a job to end. Solution: Add "termsig" to job_info(). (Ozaki Kiichi, closes #3786)
2019-01-29patch 8.1.0845: having job_status() free the job causes problemsv8.1.0845Bram Moolenaar
Problem: Having job_status() free the job causes problems. Solution: Do not actually free the job or terminal yet, put it in a list and free it a bit later. Do not use a terminal after checking the job status. (closes #3873)
2019-01-28patch 8.1.0838: compiler warning for type conversionv8.1.0838Bram Moolenaar
Problem: Compiler warning for type conversion. Solution: Add a type cast. (Mike Williams)
2019-01-26patch 8.1.0824: SunOS/Solaris has a problem with ttysv8.1.0824Bram Moolenaar
Problem: SunOS/Solaris has a problem with ttys. Solution: Add mch_isatty() with extra handling for SunOS. (Ozaki Kiichi, closes #3865)
2019-01-24patch 8.1.0818: MS-Windows: cannot send large data with ch_sendraw()v8.1.0818Bram Moolenaar
Problem: MS-Windows: cannot send large data with ch_sendraw(). Solution: Split write into several WriteFile() calls. (Yasuhiro Matsumoto, closes #3823)
2019-01-22patch 8.1.0796: MS-Windows 7: problem with named pipe on channelv8.1.0796Bram Moolenaar
Problem: MS-Windows 7: problem with named pipe on channel. Solution: Put back the disconnect/connect calls. (Yasuhiro Matsumoto, closes #3833)
2019-01-20patch 8.1.0785: depending on the configuration some functions are unusedv8.1.0785Bram Moolenaar
Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
2019-01-19patch 8.1.0777: Win32: using pipes for channel does not work wellv8.1.0777Bram Moolenaar
Problem: Win32: using pipes for channel does not work well. Solution: Use a larger buffer and handle overlaps. (Yasuhiro Matsumoto, closes #3782)
2019-01-17patch 8.1.0770: inconsistent use of ELAPSED_FUNCv8.1.0770Bram Moolenaar
Problem: Inconsistent use of ELAPSED_FUNC. Solution: Consistently use ELAPSED_FUNC. Also turn ELAPSED_TYPE into a typedef. (Ozaki Kiichi, closes #3815)
2019-01-17patch 8.1.0762: compiler warningv8.1.0762Bram Moolenaar
Problem: Compiler warning. Solution: Add type cast. (Mike Williams)
2019-01-13patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar
Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.