summaryrefslogtreecommitdiff
path: root/src/eval.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.1770: assert functions don't return anythingv8.0.1770Bram Moolenaar2018-04-281-12/+34
| | | | | Problem: Assert functions don't return anything. Solution: Return non-zero when the assertion fails.
* patch 8.0.1677: no compiler warning for wrong format in vim_snprintf()v8.0.1677Bram Moolenaar2018-04-081-1/+1
| | | | | Problem: No compiler warning for wrong format in vim_snprintf(). Solution: Add printf attribute for gcc. Fix reported problems.
* patch 8.0.1660: the terminal API "drop" command doesn't support optionsv8.0.1660Bram Moolenaar2018-04-041-2/+4
| | | | | Problem: The terminal API "drop" command doesn't support options. Solution: Implement the options.
* patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar2018-03-041-6/+2
| | | | | | 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.1529: assert_equalfile() does not close file descriptorsv8.0.1529Bram Moolenaar2018-02-201-0/+2
| | | | | Problem: Assert_equalfile() does not close file descriptors. (Coverity) Solution: Close the file descriptors.
* patch 8.0.1523: cannot write and read terminal screendumpsv8.0.1523Bram Moolenaar2018-02-181-0/+67
| | | | | | Problem: Cannot write and read terminal screendumps. Solution: Add term_dumpwrite(), term_dumpread() and term_dumpdiff(). Also add assert_equalfile().
* patch 8.0.1511: some code for the debugger watch expression is clumsyv8.0.1511Bram Moolenaar2018-02-131-184/+171
| | | | | Problem: Some code for the debugger watch expression is clumsy. Solution: Clean up the code.
* patch 8.0.1510: cannot test if a command causes a beepv8.0.1510Bram Moolenaar2018-02-131-0/+23
| | | | | Problem: Cannot test if a command causes a beep. Solution: Add assert_beeps().
* patch 8.0.1505: debugger can't break on a conditionv8.0.1505Bram Moolenaar2018-02-111-213/+274
| | | | | Problem: Debugger can't break on a condition. (Charles Campbell) Solution: Add ":breakadd expr". (Christian Brabandt, closes #859)
* patch 8.0.1496: clearing a pointer takes two linesv8.0.1496Bram Moolenaar2018-02-101-22/+8
| | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
* patch 8.0.1394: cannot intercept a yank commandv8.0.1394Bram Moolenaar2017-12-161-14/+14
| | | | | | Problem: Cannot intercept a yank command. Solution: Add the TextYankPost autocommand event. (Philippe Vaucher et al., closes #2333)
* patch 8.0.1377: cannot call a dict function in autoloaded dictv8.0.1377Bram Moolenaar2017-12-071-1/+6
| | | | | Problem: Cannot call a dict function in autoloaded dict. Solution: Call get_lval() passing the read-only flag.
* patch 8.0.1242: function argument with only dash is seen as number zerov8.0.1242Bram Moolenaar2017-11-021-1/+6
| | | | | | Problem: Function argument with only dash is seen as number zero. (Wang Shidong) Solution: See a dash as a string. (Christian Brabandt)
* patch 8.0.1239: cannot use a lambda for the skip argument to searchpair()v8.0.1239Bram Moolenaar2017-10-301-33/+66
| | | | | | Problem: Cannot use a lambda for the skip argument to searchpair(). Solution: Evaluate a partial, funcref and lambda. (LemonBoy, closes #1454, closes #2265)
* patch 8.0.1215: newer gcc warns for implicit fallthroughv8.0.1215Bram Moolenaar2017-10-241-2/+2
| | | | | Problem: Newer gcc warns for implicit fallthrough. Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
* patch 8.0.1194: actual fg and bg colors of terminal are unknownv8.0.1194Bram Moolenaar2017-10-141-1/+2
| | | | | Problem: Actual fg and bg colors of terminal are unknown. Solution: Add t_RF. Store response to t_RB and t_RF, use for terminal.
* patch 8.0.1172: when E734 is given option is still setv8.0.1172Bram Moolenaar2017-10-021-0/+3
| | | | | Problem: When E734 is given option is still set. Solution: Assign NULL to "s". (Christian Brabandt)
* patch 8.0.1123: cannot define a toolbar for a windowv8.0.1123Bram Moolenaar2017-09-171-7/+1
| | | | | Problem: Cannot define a toolbar for a window. Solution: Add a window-local toolbar.
* patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118Bram Moolenaar2017-09-161-47/+0
| | | | | | 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.1016: gnome terminal echoes t_RCv8.0.1016Bram Moolenaar2017-08-301-0/+4
| | | | | | Problem: Gnome terminal echoes t_RC. Solution: Detect Gnome terminal by the version string. Add v: variables for all the term responses.
* patch 8.0.0867: job and channel in a dict value not quotedv8.0.0867Bram Moolenaar2017-08-051-6/+17
| | | | | | | Problem: When using a job or channel value as a dict value, when turning it into a string the quotes are missing. Solution: Add quotes to the job and channel values. (Yasuhiro Matsumoto, closes #1930)
* patch 8.0.0804: running tests fails when stdin is /dev/nullv8.0.0804Bram Moolenaar2017-07-291-2/+3
| | | | | | Problem: Running tests fails when stdin is /dev/null. (James McCoy) Solution: Do not bail out from getting input if the --not-a-term argument was given. (closes #1460)
* patch 8.0.0784: job of terminal may be garbage collectedv8.0.0784Bram Moolenaar2017-07-271-0/+4
| | | | | Problem: Job of terminal may be garbage collected. Solution: Set copyID on job in terminal. (Ozaki Kiichi)
* patch 8.0.0593: duplication of code for adding a list or dict return valuev8.0.0593Bram Moolenaar2017-04-301-6/+2
| | | | | Problem: Duplication of code for adding a list or dict return value. Solution: Add rettv_dict_set() and rettv_list_set(). (Yegappan Lakshmanan)
* patch 8.0.0590: cannot add a context to locationsv8.0.0590Bram Moolenaar2017-04-301-0/+4
| | | | | | Problem: Cannot add a context to locations. Solution: Add the "context" entry in location entries. (Yegappan Lakshmanan, closes #1012)
* patch 8.0.0547: extra line break in verbosefilev8.0.0547Bram Moolenaar2017-04-071-1/+0
| | | | | | Problem: Extra line break in verbosefile when using ":echomsg". (Ingo Karkat) Solution: Don't call msg_start(). (closes #1618)
* patch 8.0.0542: getpos() can return a negative line numberv8.0.0542Bram Moolenaar2017-04-031-2/+5
| | | | | Problem: getpos() can return a negative line number. (haya14busa) Solution: Handle a zero topline and botline. (closes #1613)
* patch 8.0.0477: the client-server test may hang when failingv8.0.0477Bram Moolenaar2017-03-181-0/+11
| | | | | Problem: The client-server test may hang when failing. Solution: Set a timer. Add assert_report()
* patch 8.0.0467: using g< after :for does not show the right outputv8.0.0467Bram Moolenaar2017-03-161-0/+9
| | | | | | Problem: Using g< after :for does not show the right output. (Marcin Szamotulski) Solution: Call msg_sb_eol() in :echomsg.
* patch 8.0.0452: some macros are in lower casev8.0.0452Bram Moolenaar2017-03-121-6/+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-11/+11
| | | | | | 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.0371: leaking memory when setting v:completed_itemv8.0.0371Bram Moolenaar2017-02-251-1/+1
| | | | | Problem: Leaking memory when setting v:completed_item. Solution: Or the flags instead of setting them.
* patch 8.0.0360: sometimes VimL is used instead of "Vim script"v8.0.0360Bram Moolenaar2017-02-231-4/+4
| | | | | Problem: Sometimes VimL is used, which is confusing. Solution: Consistently use "Vim script". (Hirohito Higashi)
* patch 8.0.0352: not easy to see when a typval needs to be clearedv8.0.0352Bram Moolenaar2017-02-231-24/+16
| | | | | | Problem: The condition for when a typval needs to be cleared is too complicated. Solution: Init the type to VAR_UNKNOWN and clear it always.
* patch 8.0.0345: islocked('d.changedtick') does not workv8.0.0345Bram Moolenaar2017-02-211-1/+3
| | | | | Problem: islocked('d.changedtick') does not work. Solution: Make it work.
* patch 8.0.0344: unlet command leaks memoryv8.0.0344Bram Moolenaar2017-02-201-0/+3
| | | | | Problem: Unlet command leaks memory. (Nikolai Pavlov) Solution: Free the memory on error. (closes #1497)
* patch 8.0.0343: b:changedtick can be unlockedv8.0.0343Bram Moolenaar2017-02-201-0/+6
| | | | | | Problem: b:changedtick can be unlocked, even though it has no effect. (Nikolai Pavlov) Solution: Add a check and error E940. (closes #1496)
* patch 8.0.0334: can't access b:changedtick from a dict referencev8.0.0334Bram Moolenaar2017-02-171-80/+31
| | | | | | Problem: Can't access b:changedtick from a dict reference. Solution: Make changedtick a member of the b: dict. (inspired by neovim #6112)
* patch 8.0.0254: error message of assert functions is sometimes incompletev8.0.0254Bram Moolenaar2017-01-281-24/+23
| | | | | | Problem: When using an assert function one can either specify a message or get a message about what failed, not both. Solution: Concatenate the error with the message.
* patch 8.0.0219: ubsan reports errors for overflowv8.0.0219Bram Moolenaar2017-01-221-12/+3
| | | | | | Problem: Ubsan reports errors for integer overflow. Solution: Define macros for minimum and maximum values. Select an expression based on the value. (Mike Williams)
* patch 8.0.0186: confusing error message from assert_notequal()v8.0.0186Bram Moolenaar2017-01-141-10/+13
| | | | | Problem: The error message from assert_notequal() is confusing. Solution: Only mention the expected value.
* patch 8.0.0173: build fails with EBCDIC definedv8.0.0173Bram Moolenaar2017-01-121-5/+29
| | | | | | | Problem: When compiling with EBCDIC defined the build fails. (Yaroslav Kuzmin) Solution: Move sortFunctions() to the right file. Avoid warning for redefining __SUSV3.
* patch 8.0.0160: EMSG() is sometimes used where it should be IEMSG()v8.0.0160Bram Moolenaar2017-01-081-1/+1
| | | | | Problem: EMSG() is sometimes used for internal errors. Solution: Change them to IEMSG(). (Dominique Pelle) And a few more.
* patch 8.0.0158: float funcion test fails on MS-Windowsv8.0.0158Bram Moolenaar2017-01-081-0/+16
| | | | | | | Problem: On MS-Windows some float functions return a different value when passed unusual values. strtod() doesn't work for "inf" and "nan". Solution: Accept both results. Fix str2float() for MS-Windows. Also reorder assert function arguments.
* 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.0085v8.0.0085Bram Moolenaar2016-11-141-4/+11
| | | | | Problem: Using freed memory with recursive function call. (Dominique Pelle) Solution: Make a copy of the function name.
* patch 8.0.0074v8.0.0074Bram Moolenaar2016-11-101-9/+9
| | | | | | 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.0027v8.0.0027Bram Moolenaar2016-10-091-2/+2
| | | | | | Problem: A channel is closed when reading on stderr or stdout fails, but there may still be something to read on another part. Solution: Turn ch_to_be_closed into a bitfield. (Ozaki Kiichi)
* patch 8.0.0016v8.0.0016Bram Moolenaar2016-09-261-1/+1
| | | | | Problem: Build fails. Solution: Include missing change.
* patch 7.4.2293v7.4.2293Bram Moolenaar2016-08-291-2/+2
| | | | | Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)