summaryrefslogtreecommitdiff
path: root/src/os_win32.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.1619: Win32 GUI: crash when winpty is not installedv8.0.1619Bram Moolenaar2018-03-201-0/+2
| | | | | | | Problem: Win32 GUI: crash when winpty is not installed and trying to use :shell in a terminal window. Solution: Check for NULL return form term_start(). (Yasuhiro Matsumoto, closes #2727)
* patch 8.0.1617: Win32: :shell command in the GUI crashesv8.0.1617Bram Moolenaar2018-03-191-4/+14
| | | | | | Problem: Win32: :shell command in the GUI crashes. Solution: Handle the situation that "cmd" is NULL. (Yasuhiro Matsumoto, closes #2721)
* patch 8.0.1616: Win32: shell commands in the GUI open a new consolev8.0.1616Bram Moolenaar2018-03-181-1/+77
| | | | | | Problem: Win32: shell commands in the GUI open a new console. Solution: Use a terminal window for interactive use when 'guioptions' contains "!".
* patch 8.0.1591: MS-Windows: when reparsing the arguments 'wildignore' mattersv8.0.1591Bram Moolenaar2018-03-081-1/+6
| | | | | Problem: MS-Windows: when reparsing the arguments 'wildignore' matters. Solution: Save and reset 'wildignore'. (Yasuhiro Matsumoto, closes #2702)
* patch 8.0.1582: in the MS-Windows console mouse movement is not usedv8.0.1582Bram Moolenaar2018-03-061-3/+24
| | | | | Problem: In the MS-Windows console mouse movement is not used. Solution: Pass mouse movement events when useful.
* patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar2018-03-041-2/+0
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
* patch 8.0.1531: cannot use 24 bit colors in MS-Windows consolev8.0.1531Bram Moolenaar2018-02-221-76/+453
| | | | | | Problem: Cannot use 24 bit colors in MS-Windows console. Solution: Add support for vcon. (Nobuhiro Takasaki, Ken Takasaki, fixes #1270, fixes #2060)
* patch 8.0.1504: Win32: the screen may be cleared on startupv8.0.1504Bram Moolenaar2018-02-111-1/+7
| | | | | | Problem: Win32: the screen may be cleared on startup. Solution: Only call shell_resized() when the size actually changed. (Ken Takata, closes #2527)
* patch 8.0.1496: clearing a pointer takes two linesv8.0.1496Bram Moolenaar2018-02-101-6/+3
| | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
* patch 8.0.1459: cannot handle change of directoryv8.0.1459Bram Moolenaar2018-02-031-1/+1
| | | | | | Problem: Cannot handle change of directory. Solution: Add the DirChanged autocommand event. (Andy Massimino, closes #888) Avoid changing directory for 'autochdir' too often.
* patch 8.0.1371: Shift-Insert doesn't always work in MS-Windows consolev8.0.1371Bram Moolenaar2017-12-051-3/+12
| | | | | | Problem: Shift-Insert doesn't always work in MS-Windows console. Solution: Handle K_NUL differently if the second character is more than one byte. (Yasuhiro Matsumoto, closes #2381)
* patch 8.0.1355: cursor keys don't work in MS-Windows consolev8.0.1355Bram Moolenaar2017-11-281-35/+3
| | | | | Problem: Cursor keys don't work in MS-Windows console. Solution: Revert the previous patch. Also delete dead code.
* patch 8.0.1354: Shift-Insert doesn't always work in MS-Windows consolev8.0.1354Bram Moolenaar2017-11-281-3/+12
| | | | | Problem: Shift-Insert doesn't always work in MS-Windows console. Solution: Handle K_NUL differently. (Yasuhiro Matsumoto, closes #2381)
* patch 8.0.1330: MS-Windows: job in terminal can't get back to Vimv8.0.1330Bram Moolenaar2017-11-211-25/+46
| | | | | | Problem: MS-Windows: job in terminal can't get back to Vim. Solution: set VIM_SERVERNAME in the environment. (Yasuhiro Matsumoto, closes #2360)
* patch 8.0.1312: balloon_show() only works in terminal when compiled with GUIv8.0.1312Bram Moolenaar2017-11-181-1/+1
| | | | | | Problem: balloon_show() only works in terminal when compiled with the GUI. Solution: Add FEAT_BEVAL_GUI and refactor to move common code out of the GUI specific file.
* patch 8.0.1240: MS-Windows: term_start() does not support environmentv8.0.1240Bram Moolenaar2017-10-301-3/+3
| | | | | | Problem: MS-Windows: term_start() does not support environment. Solution: Implement the environment argument. (Yasuhiro Matsumoto, closes #2264)
* patch 8.0.0950: MS-Windows: wrong #ifdef, compiler warningsv8.0.0950Bram Moolenaar2017-08-171-1/+1
| | | | | Problem: MS-Windows: wrong #ifdef, compiler warnings for signed/unsigned. Solution: Change variable type. Change TERMINAL to FEAT_TERMINAL.
* patch 8.0.0945: 64-bit compiler warningsv8.0.0945Bram Moolenaar2017-08-141-2/+5
| | | | | Problem: 64-bit compiler warnings. Solution: Use "size_t" instead of "int". (Mike Williams)
* patch 8.0.0917: MS-Windows:CTRL-C handling in terminal window is wrongv8.0.0917Bram Moolenaar2017-08-121-0/+13
| | | | | | Problem: MS-Windows:CTRL-C handling in terminal window is wrong Solution: Pass CTRL-C as a key. Turn CTRL-BREAK into a key stroke. (Yasuhiro Matsumoto, closes #1965)
* patch 8.0.0913: MS-Windows: CTRL-C kills shell in terminal windowv8.0.0913Bram Moolenaar2017-08-121-0/+1
| | | | | | | Problem: MS-Windows: CTRL-C kills shell in terminal window instead of the command running in the shell. Solution: Make CTRL-C only send a CTRL_C_EVENT and have CTRL-BREAK kill the job. (partly by Yasuhiro Matsumoto, closes #1962)
* patch 8.0.0905: MS-Windows: broken multi-byte characters in the consolev8.0.0905Bram Moolenaar2017-08-111-14/+36
| | | | | Problem: MS-Windows: broken multi-byte characters in the console. Solution: Restore all regions of the console buffer. (Ken Takata)
* patch 8.0.0902: cannot specify directory or environment for a jobv8.0.0902Bram Moolenaar2017-08-111-24/+114
| | | | | | Problem: Cannot specify directory or environment for a job. Solution: Add the "cwd" and "env" arguments to job options. (Yasuhiro Matsumoto, closes #1160)
* patch 8.0.0899: function name mch_stop_job() is confusingv8.0.0899Bram Moolenaar2017-08-111-1/+1
| | | | | Problem: Function name mch_stop_job() is confusing. Solution: Rename to mch_signal_job().
* patch 8.0.0888: compiler warnings with 64 bit buildv8.0.0888Bram Moolenaar2017-08-071-1/+2
| | | | | Problem: Compiler warnings with 64 bit build. Solution: Add type cast of change the type. (Mike Williams)
* patch 8.0.0876: backslashes and wildcards in backticks don't workv8.0.0876Bram Moolenaar2017-08-051-1/+11
| | | | | | Problem: MS-Windows: Backslashes and wildcards in backticks don't work. Solution: Do not handle backslashes inside backticks in the wrong place. (Yasuhiro Matsumoto, closes #1942)
* patch 8.0.0854: no redraw after terminal was closedv8.0.0854Bram Moolenaar2017-08-031-10/+22
| | | | | | | Problem: No redraw after terminal was closed. Solution: Set typebuf_was_filled. (Yasuhiro Matsumoto, closes #1925, closes #1924) Add function to check for messages even when input is available.
* patch 8.0.0844: wrong function prototype because of missing staticv8.0.0844Bram Moolenaar2017-08-021-2/+3
| | | | | Problem: Wrong function prototype because of missing static. Solution: Add "static".
* patch 8.0.0840: MS-Windows: fopen() and open() prototypes are wrongv8.0.0840Bram Moolenaar2017-08-021-2/+2
| | | | | | Problem: MS-Windows: fopen() and open() prototypes do not match the ones in the system header file. Can't build without FEAT_MBYTE. Solution: Add "const". Move macro to after including protoo.h.
* patch 8.0.0744: terminal window does not use a ptyv8.0.0744Bram Moolenaar2017-07-221-1/+1
| | | | | Problem: A terminal window uses pipes instead of a pty. Solution: Add pty support.
* patch 8.0.0501: on MS-Windows ":!start" does not work as expectedv8.0.0501Bram Moolenaar2017-03-211-0/+27
| | | | | | Problem: On MS-Windows ":!start" does not work as expected. Solution: When creating a process fails try passing the argument to ShellExecute(). (Katsuya Hino, closes #1570)
* patch 8.0.0452: some macros are in lower casev8.0.0452Bram Moolenaar2017-03-121-3/+3
| | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case.
* patch 8.0.0451: some macros are in lower casev8.0.0451Bram Moolenaar2017-03-121-1/+1
| | | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice.
* patch 8.0.0424: compiler warnings on MS-Windowsv8.0.0424Bram Moolenaar2017-03-051-2/+2
| | | | | Problem: Compiler warnings on MS-Windows. (Ajit Thakkar) Solution: Add type casts.
* patch 8.0.0419: test for v:progpath fails on MS-Windowsv8.0.0419Bram Moolenaar2017-03-051-1/+6
| | | | | | Problem: Test for v:progpath fails on MS-Windows. Solution: Expand to full path. Also add ".exe" when the path is an absolute path.
* patch 8.0.0416: setting v:progpath is not quite rightv8.0.0416Bram Moolenaar2017-03-051-13/+23
| | | | | | Problem: Setting v:progpath is not quite right. Solution: On MS-Windows add the extension. On Unix use the full path for a relative directory. (partly by James McCoy, closes #1531)
* patch 8.0.0396: 'balloonexpr' only works synchronouslyv8.0.0396Bram Moolenaar2017-03-011-0/+6
| | | | | Problem: 'balloonexpr' only works synchronously. Solution: Add balloon_show(). (Jusufadis Bakamovic, closes #1449)
* patch 8.0.0307: asan detects a memory error when EXITFREE is definedv8.0.0307Bram Moolenaar2017-02-051-1/+2
| | | | | | | | Problem: Asan detects a memory error when EXITFREE is defined. (Dominique Pelle) Solution: In getvcol() check for ml_get_buf() returning an empty string. Also skip adjusting the scroll position. Set "exiting" in mch_exit() for all systems.
* patch 8.0.0281: some files are still using ARGSUSED instead of UNUSEDv8.0.0281Bram Moolenaar2017-02-011-30/+20
| | | | | | Problem: MS-Windows files are still using ARGSUSED while most other files have UNUSED. Solution: Change ARGSUSED to UNUSED or delete it.
* patch 8.0.0280: problem setting multi-byte environment var on MS-Windowsv8.0.0280Bram Moolenaar2017-02-011-1/+56
| | | | | | Problem: On MS-Windows setting an environment variable with multi-byte strings does not work well. Solution: Use wputenv when possible. (Taro Muraoka, Ken Takata)
* patch 8.0.0175: setting language on MS-Windows does not always workv8.0.0175Bram Moolenaar2017-01-121-17/+113
| | | | | | Problem: Setting language in gvim on MS-Windows does not work when libintl.dll is dynamically linked with msvcrt.dll. Solution: Use putenv() from libintl as well. (Ken Takata, closes #1082)
* patch 8.0.0103v8.0.0103Bram Moolenaar2016-11-261-1/+7
| | | | | Problem: May not process channel readahead. (skywind) Solution: If there is readahead don't block on input.
* patch 8.0.0097v8.0.0097Bram Moolenaar2016-11-241-3/+0
| | | | | | Problem: When a channel callback consumes a lot of time Vim becomes unresponsive. (skywind) Solution: Bail out of checking channel readahead after 100 msec.
* patch 8.0.0094v8.0.0094Bram Moolenaar2016-11-191-6/+18
| | | | | | Problem: When vimrun.exe is not found the error message is not properly encoded. Solution: Use utf-16 and MessageBoxW(). (Ken Takata)
* patch 8.0.0087v8.0.0087Bram Moolenaar2016-11-171-1/+1
| | | | | | | Problem: When the channel callback gets job info the job may already have been deleted. (lifepillar) Solution: Do not delete the job when the channel is still useful. (ichizok, closes #1242, closes #1245)
* patch 8.0.0054v8.0.0054Bram Moolenaar2016-10-291-2/+48
| | | | | | | | Problem: On Windows job_stop() stops cmd.exe, not the processes it runs. (Linwei) Solution: Iterate over all processes and terminate the one where the parent is the job process. Now only when there is no job object. (Yasuhiro Matsumoto, closes #1203)
* patch 8.0.0051v8.0.0051Bram Moolenaar2016-10-271-43/+25
| | | | | Problem: New code for job_stop() breaks channel test on AppVeyor. Solution: Revert the change.
* patch 8.0.0048v8.0.0048Bram Moolenaar2016-10-271-25/+43
| | | | | | | Problem: On Windows job_stop() stops cmd.exe, not the processes it runs. (Linwei) Solution: Iterate over all processes and terminate the one where the parent is the job process. (Yasuhiro Matsumoto, closes #1184)
* patch 8.0.0036v8.0.0036Bram Moolenaar2016-10-151-1/+41
| | | | | Problem: Detecting that a job has finished may take a while. Solution: Check for a finished job more often (Ozaki Kiichi)
* patch 8.0.0029v8.0.0029Bram Moolenaar2016-10-121-543/+163
| | | | | | Problem: Code for MS-Windows is complicated because of the exceptions for old systems. Solution: Drop support for MS-Windows older than Windows XP. (Ken Takata)
* patch 8.0.0018v8.0.0018Bram Moolenaar2016-09-291-2/+2
| | | | | | Problem: When using ":sleep" channel input is not handled. Solution: When there is a channel check for input also when not in raw mode. Check every 100 msec.