summaryrefslogtreecommitdiff
path: root/src/macros.h
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.0938: NFA regexp uses tolower ()to compare ignore-casev8.2.0938Bram Moolenaar2020-06-091-0/+1
| | | | | Problem: NFA regexp uses tolower() to compare ignore-case. (Thayne McCombs) Solution: Use utf_fold() when possible. (ref. neovim #12456)
* patch 8.2.0877: cannot get the search statisticsv8.2.0877Bram Moolenaar2020-06-011-0/+1
| | | | | Problem: Cannot get the search statistics. Solution: Add the searchcount() function. (Fujiwara Takuya, closes #4446)
* patch 8.2.0751: Vim9: performance can be improvedv8.2.0751Bram Moolenaar2020-05-131-0/+6
| | | | | | 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.0562: Vim9: cannot split an expression into multiple linesv8.2.0562Bram Moolenaar2020-04-121-3/+4
| | | | | Problem: Vim9: cannot split an expression into multiple lines. Solution: Continue in next line after an operator.
* patch 8.2.0371: crash with combination of terminal popup and autocmdv8.2.0371Bram Moolenaar2020-03-111-0/+3
| | | | | | Problem: Crash with combination of terminal popup and autocmd. Solution: Disallow closing a popup that is the current window. Add a check that the current buffer is valid. (closes #5754)
* patch 8.2.0328: no redraw when leaving term-normal mode in popup terminalv8.2.0328Bram Moolenaar2020-02-281-0/+2
| | | | | | Problem: No redraw when leaving terminal-normal mode in a terminal popup window. Solution: Redraw the popup window. (closes #5708)
* patch 8.2.0194: some commands can cause problems in terminal popupv8.2.0194Bram Moolenaar2020-02-011-1/+3
| | | | | Problem: Some commands can cause problems in terminal popup. Solution: Disallow more commands.
* patch 8.2.0193: still build failure without +terminal featurev8.2.0193Bram Moolenaar2020-02-011-1/+4
| | | | | Problem: Still build failure without +terminal feature. Solution: Add more #ifdefs.
* patch 8.2.0191: cannot put a terminal in a popup windowv8.2.0191Bram Moolenaar2020-02-011-0/+2
| | | | | | Problem: Cannot put a terminal in a popup window. Solution: Allow opening a terminal in a popup window. It will always have keyboard focus until closed.
* patch 8.2.0149: maintaining a Vim9 branch separately is more workv8.2.0149Bram Moolenaar2020-01-261-0/+4
| | | | | Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.
* patch 8.2.0098: exe stack length can be wrong without being detectedv8.2.0098Bram Moolenaar2020-01-071-0/+12
| | | | | Problem: Exe stack length can be wrong without being detected. Solution: Add a check when ABORT_ON_INTERNAL_ERROR is defined.
* patch 8.1.2371: FEAT_TEXT_PROP is a confusing namev8.1.2371Bram Moolenaar2019-11-301-1/+1
| | | | | Problem: FEAT_TEXT_PROP is a confusing name. Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291)
* patch 8.1.2366: using old C style commentsv8.1.2366Bram Moolenaar2019-11-301-19/+19
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2243: typos in commentsv8.1.2243Bram Moolenaar2019-11-021-1/+1
| | | | | | Problem: Typos in comments. Solution: Fix the typos. (Dominique Pelle, closes #5160) Also adjust formatting a bit.
* patch 8.1.2120: some MB_ macros are more complicated than necessaryv8.1.2120Bram Moolenaar2019-10-061-4/+2
| | | | | | Problem: Some MB_ macros are more complicated than necessary. (Dominique Pelle) Solution: Simplify the macros. Expand inline.
* patch 8.1.2119: memory access error for empty stringv8.1.2119Bram Moolenaar2019-10-061-3/+3
| | | | | | | Problem: memory access error for empty string when 'encoding' is a single byte encoding. Solution: Check for empty string when getting the length. (Dominique Pelle, closes #5021, closes #5007)
* patch 8.1.1555: NOT_IN_POPUP_WINDOW is confusingv8.1.1555Bram Moolenaar2019-06-161-2/+3
| | | | | Problem: NOT_IN_POPUP_WINDOW is confusing. (Andy Massimino) Solution: Rename to ERROR_IF_POPUP_WINDOW().
* patch 8.1.1438: some commands cause trouble in a popup windowv8.1.1438Bram Moolenaar2019-06-011-0/+6
| | | | | Problem: Some commands cause trouble in a popup window. Solution: Add NOT_IN_POPUP_WINDOW.
* patch 8.1.1210: support for user commands is spread outv8.1.1210Bram Moolenaar2019-04-271-0/+3
| | | | | | | Problem: Support for user commands is spread out. No good reason to make user commands optional. Solution: Move user command support to usercmd.c. Always enable the user_commands feature.
* patch 8.1.1086: too many curly bracesv8.1.1086Bram Moolenaar2019-03-301-3/+4
| | | | | | Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
* patch 8.1.1038: Arabic support excludes Farsiv8.1.1038Bram Moolenaar2019-03-221-0/+1
| | | | | | Problem: Arabic support excludes Farsi. Solution: Add Farsi support to the Arabic support. (Ali Gholami Rudi, Ameretat Reith)
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-4/+4
| | | | | | | 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)
* patch 8.1.0826: too many #ifdefsv8.1.0826Bram Moolenaar2019-01-261-13/+4
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
* patch 8.1.0810: too many #ifdefsv8.1.0810Bram Moolenaar2019-01-241-45/+14
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 4.
* patch 8.1.0528: various typos in commentsv8.1.0528Bram Moolenaar2018-11-161-1/+1
| | | | | Problem: Various typos in comments. Solution: Fix the typos.
* patch 8.1.0226: too many #ifdefsv8.1.0226Bram Moolenaar2018-07-291-5/+1
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +vreplace feature, it's not much code and quite a few #ifdefs.
* patch 8.1.0125: virtual edit replace with multi-byte fails at end of linev8.1.0125Bram Moolenaar2018-06-281-2/+2
| | | | | | | | Problem: Virtual edit replace with multi-byte fails at end of line. (Lukas Werling) Solution: use ins_char() to add the character. (Christian Brabandt, closes #3114) Rename PCHAR() to PBYTE() to avoid mistakes like this.
* patch 8.0.1688: some macros are used without a semicolonv8.0.1688Bram Moolenaar2018-04-101-4/+4
| | | | | | Problem: Some macros are used without a semicolon, causing auto-indent to be wrong. Solution: Use the do-while(0) trick. (Ozaki Kiichi, closes #2729)
* patch 8.0.1566: too many #ifdefsv8.0.1566Bram Moolenaar2018-03-041-13/+1
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_SCROLLBIND and FEAT_CURSORBIND.
* patch 8.0.1496: clearing a pointer takes two linesv8.0.1496Bram Moolenaar2018-02-101-0/+11
| | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
* patch 8.0.1449: slow redrawing with DirectXv8.0.1449Bram Moolenaar2018-01-311-3/+14
| | | | | | Problem: Slow redrawing with DirectX. Solution: Avoid calling gui_mch_flush() unnecessarily, especially when updating the cursor. (Ken Takata, closes #2560)
* patch 8.0.1236: Mac features are confusingv8.0.1236Bram Moolenaar2017-10-281-8/+3
| | | | | | 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.0840: MS-Windows: fopen() and open() prototypes are wrongv8.0.0840Bram Moolenaar2017-08-021-7/+0
| | | | | | 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.0614: float2nr() is not exactly rightv8.0.0614Bram Moolenaar2017-06-041-0/+3
| | | | | | Problem: float2nr() is not exactly right. Solution: Make float2nr() more accurate. Turn test64 into a new style test. (Hirohito Higashi, closes #1688)
* patch 8.0.0452: some macros are in lower casev8.0.0452Bram Moolenaar2017-03-121-0/+6
| | | | | 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-15/+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.0448: some macros are in lower casev8.0.0448Bram Moolenaar2017-03-121-15/+15
| | | | | Problem: Some macros are in lower case, which can be confusing. Solution: Make a few lower case macros upper case.
* patch 8.0.0067v8.0.0067Bram Moolenaar2016-11-061-1/+5
| | | | | Problem: VMS has a problem with infinity. Solution: Avoid an overflow. (Zoltan Arpadffy)
* patch 8.0.0059v8.0.0059Bram Moolenaar2016-11-041-0/+1
| | | | | Problem: Vim does not build on VMS systems. Solution: Various changes for VMS. (Zoltan Arpadffy)
* 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.2236v7.4.2236Bram Moolenaar2016-08-211-2/+2
| | | | | | | | Problem: The 'langnoremap' option leads to double negatives. And it does not work for the last character of a mapping. Solution: Add 'langremap' with the opposite value. Keep 'langnoremap' for backwards compatibility. Make it work for the last character of a mapping. Make the test work.
* patch 7.4.2223v7.4.2223Bram Moolenaar2016-08-171-1/+2
| | | | | Problem: Buffer overflow when using latin1 character with feedkeys(). Solution: Check for an illegal character. Add a test.
* patch 7.4.2062v7.4.2062Bram Moolenaar2016-07-171-0/+11
| | | | | Problem: Using dummy variable to compute struct member offset. Solution: Use offsetof().
* patch 7.4.1537v7.4.1537Bram Moolenaar2016-03-111-1/+1
| | | | | Problem: Too many feature flags for pipes, jobs and channels. Solution: Only use FEAT_JOB_CHANNEL.
* patch 7.4.1489v7.4.1489Bram Moolenaar2016-03-041-1/+1
| | | | | Problem: "inline" is not supported by old MSVC. Solution: use "__inline". (Ken Takata)
* patch 7.4.1487v7.4.1487Bram Moolenaar2016-03-041-1/+1
| | | | | Problem: For WIN32 isinf() is defined as a macro. Solution: Define it as an inline function. (ZyX)
* patch 7.4.1440v7.4.1440Bram Moolenaar2016-02-271-17/+21
| | | | | Problem: Can't build on Windows. Solution: Change #ifdefs. Only define isnan when used.
* patch 7.4.1437v7.4.1437Bram Moolenaar2016-02-271-0/+29
| | | | | | Problem: Old system doesn't have isinf() and NAN. (Ben Fritz) Solution: Adjust #ifdefs. Detect isnan() and isinf() functions with configure. Use a replacement when missing. (Kazunobu Kuriyama)
* patch 7.4.1416v7.4.1416Bram Moolenaar2016-02-251-1/+1
| | | | | | Problem: Using "u_char" intead of "char_u", which doesn't work everywhere. (Jörg Plate) Solution: Use "char_u" always.
* patch 7.4.1399v7.4.1399Bram Moolenaar2016-02-231-1/+1
| | | | | Problem: The MS-DOS code does not build. Solution: Remove the old MS-DOS code.