summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.2021: some global functions can be local to the filev8.1.2021Bram Moolenaar2019-09-101-4/+4
| | | | | Problem: Some global functions can be local to the file. Solution: Add "static". (Yegappan Lakshmanan, closes #4917)
* patch 8.1.1989: the evalfunc.c file is still too bigv8.1.1989Bram Moolenaar2019-09-051-3/+116
| | | | | | | Problem: The evalfunc.c file is still too big. Solution: Move f_pathshorten() to filepath.c. Move f_cscope_connection() to if_cscope.c. Move diff_ functions to diff.c. Move timer_ functions to ex_cmds2.c. move callback functions to evalvars.c.
* patch 8.1.1927: code for dealing with script files is spread outv8.1.1927Bram Moolenaar2019-08-251-1550/+0
| | | | | Problem: Code for dealing with script files is spread out. Solution: Move the code to scriptfile.c. (Yegappan Lakshmanan, closes #4861)
* patch 8.1.1887: the +cmdline_compl feature is not in the tiny versionv8.1.1887Bram Moolenaar2019-08-181-7/+6
| | | | | Problem: The +cmdline_compl feature is not in the tiny version. Solution: Graduate the +cmdline_compl feature.
* patch 8.1.1869: code for the argument list is spread outv8.1.1869Bram Moolenaar2019-08-171-649/+0
| | | | | | Problem: Code for the argument list is spread out. Solution: Put argument list code in arglist.c. (Yegappan Lakshmanan, closes #4819)
* patch 8.1.1800: function call functions have too many argumentsv8.1.1800Bram Moolenaar2019-08-031-3/+1
| | | | | Problem: Function call functions have too many arguments. Solution: Pass values in a funcexe_T struct.
* patch 8.1.1795: no syntax HL after splitting windows with :bufdov8.1.1795Bram Moolenaar2019-08-031-1/+33
| | | | | | | Problem: No syntax HL after splitting windows with :bufdo. (Yasuhiro Matsumoto) Solution: Trigger Syntax autocommands in buffers that are active. (closes #4761)
* patch 8.1.1689: profiling code is spread outv8.1.1689Bram Moolenaar2019-07-141-219/+0
| | | | | | Problem: Profiling code is spread out. Solution: Move more profiling code to profiler.c. (Yegappan Lakshmanan, closes #4668)
* patch 8.1.1684: profiling functionality is spread outv8.1.1684Bram Moolenaar2019-07-131-503/+2
| | | | | | Problem: Profiling functionality is spread out. Solution: Put profiling functionality in profiling.c. (Yegappan Lakshmanan, closes #4666)
* patch 8.1.1625: script line numbers are not exactly rightv8.1.1625Bram Moolenaar2019-07-041-15/+28
| | | | | | Problem: Script line numbers are not exactly right. Solution: Handle heredoc and continuation lines better. (Ozaki Kiichi, closes #4611, closes #4511)
* patch 8.1.1591: on error garbage collection may free memory in usev8.1.1591Bram Moolenaar2019-06-251-2/+2
| | | | | | Problem: On error garbage collection may free memory in use. Solution: Reset may_garbage_collect when evaluating expression mapping. Add tests. (Ozaki Kiichi, closes #4579)
* patch 8.1.1588: in :let-heredoc line continuation is recognizedv8.1.1588Bram Moolenaar2019-06-251-4/+8
| | | | | Problem: In :let-heredoc line continuation is recognized. Solution: Do not consume line continuation. (Ozaki Kiichi, closes #4580)
* patch 8.1.1575: callbacks may be garbage collectedv8.1.1575Bram Moolenaar2019-06-201-1/+1
| | | | | Problem: Callbacks may be garbage collected. Solution: Set reference in callbacks. (Ozaki Kiichi, closes #4564)
* patch 8.1.1555: NOT_IN_POPUP_WINDOW is confusingv8.1.1555Bram Moolenaar2019-06-161-1/+1
| | | | | Problem: NOT_IN_POPUP_WINDOW is confusing. (Andy Massimino) Solution: Rename to ERROR_IF_POPUP_WINDOW().
* patch 8.1.1498: ":write" increments b:changedtick even though nothing changedv8.1.1498Bram Moolenaar2019-06-081-2/+2
| | | | | | Problem: ":write" increments b:changedtick even though nothing changed. (Daniel Hahler) Solution: Only increment b:changedtick if the modified flag is reset.
* patch 8.1.1438: some commands cause trouble in a popup windowv8.1.1438Bram Moolenaar2019-06-011-0/+2
| | | | | Problem: Some commands cause trouble in a popup window. Solution: Add NOT_IN_POPUP_WINDOW.
* patch 8.1.1437: code to handle callbacks is duplicatedv8.1.1437Bram Moolenaar2019-06-011-17/+7
| | | | | Problem: Code to handle callbacks is duplicated. Solution: Add callback_T and functions to deal with it.
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-5/+5
| | | | | | 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.
* patch 8.1.1393: unnecessary type castsv8.1.1393Bram Moolenaar2019-05-251-1/+1
| | | | | Problem: Unnecessary type casts. Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-1/+1
| | | | | | 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.
* patch 8.1.1371: cannot recover from a swap filev8.1.1371Bram Moolenaar2019-05-231-2/+2
| | | | | | | Problem: Cannot recover from a swap file. Solution: Do not expand environment variables in the swap file name. Do not check the extension when we already know a file is a swap file. (Ken Takata, closes 4415, closes #4369)
* patch 8.1.1363: ":vert options" does not make a vertical splitv8.1.1363Bram Moolenaar2019-05-211-1/+3
| | | | | | Problem: ":vert options" does not make a vertical split. Solution: Pass the right modifiers in $OPTWIN_CMD. (Ken Takata, closes #4401)
* patch 8.1.1319: computing function length name in many placesv8.1.1319Bram Moolenaar2019-05-111-1/+1
| | | | | Problem: Computing function length name in many places. Solution: compute name length in call_func().
* patch 8.1.1312: Coverity warning for using uninitialized variablev8.1.1312Bram Moolenaar2019-05-091-3/+3
| | | | | Problem: Coverity warning for using uninitialized variable. Solution: Clear exarg_T.
* patch 8.1.1300: in a terminal 'ballooneval' does not work right awayv8.1.1300Bram Moolenaar2019-05-081-0/+7
| | | | | | Problem: In a terminal 'ballooneval' does not work right away. Solution: Flush output after drawing the balloon. Add the <Ignore> key code. Add a test.
* patch 8.1.1261: no error for quickfix commands with negative rangev8.1.1261Bram Moolenaar2019-05-041-1/+1
| | | | | | Problem: No error for quickfix commands with negative range. Solution: Add ADDR_UNSIGNED and use it for quickfix commands. Make assert_fails() show the command if the error doesn't match.
* patch 8.1.1195: Vim script debugger functionality needs cleanupv8.1.1195Bram Moolenaar2019-04-211-975/+0
| | | | | | Problem: Vim script debugger functionality needs cleanup. Solution: Move debugger code to a separate file. Add more tests. (Yegappan Lakshmanan, closes #4285)
* patch 8.1.1188: not all Vim variables require the v: prefixv8.1.1188Bram Moolenaar2019-04-201-1/+1
| | | | | | Problem: Not all Vim variables require the v: prefix. Solution: When scriptversion is 3 all Vim variables can only be used with the v: prefix. (Ken Takata, closes #4274)
* patch 8.1.1117: build failure without the +eval featurev8.1.1117Bram Moolenaar2019-04-041-0/+2
| | | | | Problem: Build failure without the +eval feature. Solution: Add #ifdef.
* patch 8.1.1116: cannot enforce a Vim script stylev8.1.1116Bram Moolenaar2019-04-041-5/+29
| | | | | Problem: Cannot enforce a Vim script style. Solution: Add the :scriptversion command. (closes #3857)
* patch 8.1.0989: various small code uglinessv8.1.0989Bram Moolenaar2019-03-021-1/+1
| | | | | | Problem: Various small code ugliness. Solution: Remove pointless NULL checks. Fix function calls. Fix typos. (Dominique Pelle, closes #4060)
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-23/+23
| | | | | | | 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.0928: stray log function callv8.1.0928Bram Moolenaar2019-02-161-1/+0
| | | | | Problem: Stray log function call. Solution: Remove the log function call.
* patch 8.1.0927: USE_CR is never definedv8.1.0927Bram Moolenaar2019-02-151-106/+4
| | | | | Problem: USE_CR is never defined. Solution: Remove usage of USE_CR. (Ken Takata, closes #3958)
* patch 8.1.0806: too many #ifdefsv8.1.0806Bram Moolenaar2019-01-241-3/+1
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 2.
* patch 8.1.0805: too many #ifdefsv8.1.0805Bram Moolenaar2019-01-241-12/+1
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 1.
* patch 8.1.0785: depending on the configuration some functions are unusedv8.1.0785Bram Moolenaar2019-01-201-1/+1
| | | | | | Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
* patch 8.1.0779: argument for message functions is inconsistentv8.1.0779Bram Moolenaar2019-01-191-7/+7
| | | | | Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-51/+51
| | | | | | | | 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.
* patch 8.1.0732: cannot build without the eval featurev8.1.0732Bram Moolenaar2019-01-121-3/+2
| | | | | Problem: Cannot build without the eval feature. Solution: Make a copy of the sourced file name.
* patch 8.1.0729: there is a SourcePre autocommand event but not a SourcePostv8.1.0729Bram Moolenaar2019-01-121-0/+12
| | | | | Problem: There is a SourcePre autocommand event but not a SourcePost. Solution: Add the SourcePost autocommand event. (closes #3739)
* patch 8.1.0651: :args \"foo works like :args without argumentv8.1.0651Bram Moolenaar2018-12-281-1/+1
| | | | | Problem: :args \"foo works like :args without argument. Solution: Fix check for empty argument. (closes #3728)
* patch 8.1.0553: it is not easy to edit a script that was sourcedv8.1.0553Bram Moolenaar2018-11-301-1/+14
| | | | | | Problem: It is not easy to edit a script that was sourced. Solution: Add a count to ":scriptnames", so that ":script 40" edits the script with script ID 40.
* patch 8.1.0515: reloading a script gives errors for existing functionsv8.1.0515Bram Moolenaar2018-11-101-4/+5
| | | | | Problem: Reloading a script gives errors for existing functions. Solution: Allow redefining a function once when reloading a script.
* patch 8.1.0512: 'helplang' default is inconsistent for C and C.UTF-8v8.1.0512Bram Moolenaar2018-11-051-3/+13
| | | | | Problem: 'helplang' default is inconsistent for C and C.UTF-8. Solution: Don't accept a value unless it starts with two letters.
* patch 8.1.0475: memory not freed on exit when quit in autocmdv8.1.0475Bram Moolenaar2018-10-141-3/+3
| | | | | Problem: Memory not freed on exit when quit in autocmd. Solution: Remember funccal stack when executing autocmd.
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-13/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0369: continuation lines cannot contain commentsv8.1.0369Bram Moolenaar2018-09-111-15/+22
| | | | | Problem: Continuation lines cannot contain comments. Solution: Support using "\ .
* patch 8.1.0362: cannot get the script line number when executing a functionv8.1.0362Bram Moolenaar2018-09-101-25/+27
| | | | | | Problem: Cannot get the script line number when executing a function. Solution: Store the line number besides the script ID. (Ozaki Kiichi, closes #3362) Also display the line number with ":verbose set".
* patch 8.1.0353: an "after" directory of a package is appended to 'rtp'v8.1.0353Bram Moolenaar2018-09-081-27/+75
| | | | | | | Problem: An "after" directory of a package is appended to 'rtp', which will be after the user's "after" directory. () Solution: Insert the package "after" directory before any other "after" directory in 'rtp'. (closes #3409)