summaryrefslogtreecommitdiff
path: root/src/misc2.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar2018-03-041-6/+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.1496: clearing a pointer takes two linesv8.0.1496Bram Moolenaar2018-02-101-13/+2
| | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
* patch 8.0.1492: memory leak in balloon_split()v8.0.1492Bram Moolenaar2018-02-101-0/+4
| | | | | Problem: Memory leak in balloon_split(). Solution: Free the balloon lines. Free the balloon when exiting.
* patch 8.0.1481: clearing a pointer takes two linesv8.0.1481Bram Moolenaar2018-02-091-3/+16
| | | | | Problem: Clearing a pointer takes two lines. Solution: Add vim_clear() to free and clear the pointer.
* patch 8.0.1460: missing file in patchv8.0.1460Bram Moolenaar2018-02-031-2/+9
| | | | | Problem: Missing file in patch. Solution: Add changes to missing file.
* patch 8.0.1421: accessing invalid memory with overlong byte sequencev8.0.1421Bram Moolenaar2017-12-221-2/+14
| | | | | Problem: Accessing invalid memory with overlong byte sequence. Solution: Check for NUL character. (test by Dominique Pelle, closes #2485)
* patch 8.0.1417: test doesn't search for a sentencev8.0.1417Bram Moolenaar2017-12-191-3/+20
| | | | | | Problem: Test doesn't search for a sentence. Still fails when searching for start of sentence. (Dominique Pelle) Solution: Add paren. Check for MAXCOL in dec().
* patch 8.0.1416: crash when searching for a sentencev8.0.1416Bram Moolenaar2017-12-191-11/+16
| | | | | Problem: Crash when searching for a sentence. Solution: Return NUL when getting character at MAXCOL. (closes #2468)
* patch 8.0.1309: cannot use 'balloonexpr' in a terminalv8.0.1309Bram Moolenaar2017-11-181-1/+2
| | | | | | Problem: Cannot use 'balloonexpr' in a terminal. Solution: Add 'balloonevalterm' and add code to handle mouse movements in a terminal. Initial implementation for Unix with GUI.
* patch 8.0.1276: key lost when window closed in exit callbackv8.0.1276Bram Moolenaar2017-11-091-0/+7
| | | | | | | Problem: Typed key is lost when the terminal window is closed in exit callback. (Gabriel Barta) Solution: When the current window changes bail out of the wait loop. (closes #2302)
* patch 8.0.1236: Mac features are confusingv8.0.1236Bram Moolenaar2017-10-281-16/+5
| | | | | | Problem: Mac features are confusing. Solution: Make feature names more consistent, add "osxdarwin". Rename feature flags, cleanup Mac code. (Kazunobu Kuriyama, closes #2178)
* patch 8.0.1214: accessing freed memory when EXITFREE is setv8.0.1214Bram Moolenaar2017-10-231-1/+3
| | | | | | Problem: Accessing freed memory when EXITFREE is set and there is more than one tab and window. (Dominique Pelle) Solution: Free options later. Skip redraw when exiting.
* patch 8.0.1136: W_WIDTH() is always the samev8.0.1136Bram Moolenaar2017-09-221-3/+3
| | | | | Problem: W_WIDTH() is always the same. Solution: Expand the macro.
* patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118Bram Moolenaar2017-09-161-14/+1
| | | | | | Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always enabled and only adds 7% to the binary size of the tiny build. Solution: Graduate FEAT_WINDOWS.
* patch 8.0.1019: pasting in virtual edit happens in the wrong placev8.0.1019Bram Moolenaar2017-08-301-2/+5
| | | | | Problem: Pasting in virtual edit happens in the wrong place. Solution: Do not adjust coladd when after the end of the line (closes #2015)
* patch 8.0.1000: cannot open a terminal without running a job in itv8.0.1000Bram Moolenaar2017-08-261-1/+1
| | | | | Problem: Cannot open a terminal without running a job in it. Solution: Make ":terminal NONE" open a terminal with a pty.
* patch 8.0.0962: crash with virtualedit and joining linesv8.0.0962Bram Moolenaar2017-08-191-0/+11
| | | | | | Problem: Crash with virtualedit and joining lines. (Joshua T Corbin, Neovim #6726) Solution: When using a mark check that coladd is valid.
* patch 8.0.0751: OpenPTY missing with some combination of featuresv8.0.0751Bram Moolenaar2017-07-221-0/+3
| | | | | | Problem: OpenPTY missing with some combination of features. (Kazunobu Kuriyama) Solution: Adjust #ifdef. Also include pty.pro when needed.
* patch 8.0.0661: recognizing urxvt mouse codes does not work wellv8.0.0661Bram Moolenaar2017-06-221-0/+1
| | | | | Problem: Recognizing urxvt mouse codes does not work well. Solution: Recognize "Esc[*M" and "Esc[*m". (Maurice Bos, closes #1486)
* patch 8.0.0561: undefined behavior when using backslash after empty linev8.0.0561Bram Moolenaar2017-04-101-1/+1
| | | | | Problem: Undefined behavior when using backslash after empty line. Solution: Check for an empty line. (Dominique Pelle, closes #1631)
* patch 8.0.0520: using a function pointer while the function is knownv8.0.0520Bram Moolenaar2017-03-291-1/+1
| | | | | | | Problem: Using a function pointer instead of the actual function, which we know. Solution: Change mb_ functions to utf_ functions when already checked for Unicode. (Dominique Pelle, closes #1582)
* patch 8.0.0493: crash with cd command with very long argumentv8.0.0493Bram Moolenaar2017-03-191-12/+41
| | | | | Problem: Crash with cd command with very long argument. Solution: Check for running out of space. (Dominique pending, closes #1576)
* patch 8.0.0468: after aborting an Ex command g< does not workv8.0.0468Bram Moolenaar2017-03-161-2/+2
| | | | | | | | Problem: After aborting an Ex command g< does not work. (Marcin Szamotulski) Solution: Postpone clearing scrollback messages to until the command line has been entered. Also fix that the screen isn't redrawn if after g< the command line is cancelled.
* patch 8.0.0460: can't build on HPUXv8.0.0460Bram Moolenaar2017-03-161-2/+2
| | | | | Problem: Can't build on HPUX. Solution: Fix argument names in vim_stat(). (John Marriott)
* patch 8.0.0452: some macros are in lower casev8.0.0452Bram Moolenaar2017-03-121-1/+1
| | | | | 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-5/+16
| | | | | | 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.0397: can't build with +viminfo but without +evalv8.0.0397Bram Moolenaar2017-03-011-1/+1
| | | | | | Problem: Cannot build with the viminfo feature but without the eval feature. Solution: Adjust #ifdef. (John Marriott)
* patch 8.0.0357: crash when setting 'guicursor' to weird valuev8.0.0357Bram Moolenaar2017-02-231-2/+3
| | | | | Problem: Crash when setting 'guicursor' to weird value. Solution: Avoid negative size. (Dominique Pelle, closes #1465)
* patch 8.0.0248: vim_strcat() cannot handle overlapping argumentsv8.0.0248Bram Moolenaar2017-01-271-2/+2
| | | | | | Problem: vim_strcat() cannot handle overlapping arguments. Solution: Use mch_memmove() instead of strcpy(). (Justin M Keyes, closes #1415)
* patch 8.0.0243: tolower() does not work if the byte count changesv8.0.0243Bram Moolenaar2017-01-261-1/+67
| | | | | | Problem: When making a character lower case with tolower() changes the byte cound, it is not made lower case. Solution: Add strlow_save(). (Dominique Pelle, closes #1406)
* patch 8.0.0241: fallback implementation of mch_memmove is unusedv8.0.0241Bram Moolenaar2017-01-261-28/+0
| | | | | | | Problem: Vim defines a mch_memmove() function but it doesn't work, thus is always unused. Solution: Remove the mch_memmove implementation. (suggested by Dominique Pelle)
* patch 8.0.0212: buffer for key name may be too smallv8.0.0212Bram Moolenaar2017-01-221-2/+9
| | | | | | | Problem: The buffer used to store a key name theoreticaly could be too small. (Coverity) Solution: Count all possible modifier characters. Add a check for the length just in case.
* patch 8.0.0210: no support for bracketed pastev8.0.0210Bram Moolenaar2017-01-211-0/+2
| | | | | | Problem: Vim does not support bracketed paste, as implemented by xterm and other terminals. Solution: Add t_BE, t_BD, t_PS and t_PE.
* patch 8.0.0164: outdated and misplaced commentsv8.0.0164Bram Moolenaar2017-01-101-1/+1
| | | | | Problem: Outdated and misplaced comments. Solution: Fix the comments.
* patch 8.0.0118v8.0.0118Bram Moolenaar2016-12-011-3/+5
| | | | | Problem: "make proto" adds extra function prototype. Solution: Add #ifdef.
* patch 8.0.0109v8.0.0109Bram Moolenaar2016-12-011-21/+0
| | | | | | Problem: Still checking if memcmp() exists while every system should have it now. Solution: Remove vim_memcmp(). (James McCoy, closes #1295)
* patch 8.0.0103v8.0.0103Bram Moolenaar2016-11-261-4/+1
| | | | | 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-0/+31
| | | | | | 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.0074v8.0.0074Bram Moolenaar2016-11-101-28/+2
| | | | | | Problem: Cannot make Vim fail on an internal error. Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an internal error without mentioning where.
* patch 8.0.0055v8.0.0055Bram Moolenaar2016-10-301-0/+1
| | | | | Problem: Minor comment and style deficiencies. Solution: Update comments and fix style.
* patch 8.0.0029v8.0.0029Bram Moolenaar2016-10-121-4/+4
| | | | | | 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 7.4.2326v7.4.2326Bram Moolenaar2016-09-041-0/+22
| | | | | | Problem: Illegal memory access when Visual selection starts in invalid position. (Dominique Pelle) Solution: Correct position when needed.
* patch 7.4.2293v7.4.2293Bram Moolenaar2016-08-291-1/+1
| | | | | Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
* patch 7.4.2209v7.4.2209Bram Moolenaar2016-08-141-13/+21
| | | | | | Problem: Cannot map <M-">. (Stephen Riehm) Solution: Solve the memory access problem in another way. (Dominique Pelle) Allow for using <M-\"> in a string.
* patch 7.4.2137v7.4.2137Bram Moolenaar2016-08-011-4/+8
| | | | | | | Problem: Using function() with a name will find another function when it is redefined. Solution: Add funcref(). Refer to lambda using a partial. Fix several reference counting issues.
* patch 7.4.2130v7.4.2130Bram Moolenaar2016-07-301-0/+3
| | | | | Problem: Pending timers cause false memory leak reports. Solution: Free all timers on exit.
* patch 7.4.2048v7.4.2048Bram Moolenaar2016-07-161-1/+1
| | | | | Problem: There is still code and help for unsupported systems. Solution: Remove the code and text. (Hirohito Higashi)
* patch 7.4.2024v7.4.2024Bram Moolenaar2016-07-101-1/+4
| | | | | Problem: More buf_valid() calls can be optimized. Solution: Use bufref_valid() instead.
* patch 7.4.1976v7.4.1976Bram Moolenaar2016-07-011-1/+1
| | | | | Problem: Number variables are not 64 bits while they could be. Solution: Add the num64 feature. (Ken Takata)
* patch 7.4.1975v7.4.1975Bram Moolenaar2016-07-011-1/+1
| | | | | | Problem: On MS-Windows large files (> 2Gbyte) cause problems. Solution: Use "off_T" instead of "off_t". Use "stat_T" instead of "struct stat". Use 64 bit system functions if available. (Ken Takata)