summaryrefslogtreecommitdiff
path: root/src/misc2.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1492: MS-Windows: when "!" is in 'guioptions' ":!start" failsv8.1.1492Bram Moolenaar2019-06-081-1/+5
| | | | | | Problem: MS-Windows: when "!" is in 'guioptions' ":!start" fails. Solution: Do not use a terminal window when the shell command begins with "!start". (Yasuhiro Matsumoto, closes #4504)
* patch 8.1.1441: popup window filter not yet implementedv8.1.1441Bram Moolenaar2019-06-011-3/+17
| | | | | Problem: Popup window filter not yet implemented. Solution: Implement the popup filter.
* patch 8.1.1439: json_encode() is very slow for large resultsv8.1.1439Bram Moolenaar2019-06-011-0/+7
| | | | | | Problem: Json_encode() is very slow for large results. Solution: In the growarray use a growth of at least 50%. (Ken Takata, closes #4461)
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-23/+22
| | | | | | 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-62/+44
| | | | | | 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.1355: obvious mistakes are accepted as valid expressionsv8.1.1355Bram Moolenaar2019-05-191-2/+12
| | | | | | Problem: Obvious mistakes are accepted as valid expressions. Solution: Be more strict about parsing numbers. (Yasuhiro Matsumoto, closes #3981)
* patch 8.1.1306: Borland support is outdated and doesn't workv8.1.1306Bram Moolenaar2019-05-091-8/+1
| | | | | | Problem: Borland support is outdated and doesn't work. Solution: Remove Borland support, there are other (free) compilers available. (Thomas Dziedzic, Ken Takata, closes #4364)
* patch 8.1.1300: in a terminal 'ballooneval' does not work right awayv8.1.1300Bram Moolenaar2019-05-081-0/+1
| | | | | | 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.1259: crash when exiting earlyv8.1.1259Bram Moolenaar2019-05-031-21/+30
| | | | | Problem: Crash when exiting early. (Ralf Schandl) Solution: Only pop/push the title when it was set. (closes #4334)
* patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exev8.1.1230Bram Moolenaar2019-04-281-0/+77
| | | | | | Problem: A lot of code is shared between vim.exe and gvim.exe. Solution: Optionally put the shared code in vim.dll. (Ken Takata, closes #4287)
* patch 8.1.1210: support for user commands is spread outv8.1.1210Bram Moolenaar2019-04-271-3/+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.1076: file for Insert mode is much too bigv8.1.1076Bram Moolenaar2019-03-301-0/+1
| | | | | | Problem: File for Insert mode is much too big. Solution: Split off the code for Insert completion. (Yegappan Lakshmanan, closes #4044)
* patch 8.1.1034: too many #ifdefsv8.1.1034Bram Moolenaar2019-03-221-2/+0
| | | | | Problem: Too many #ifdefs. Solution: Merge FEAT_MOUSE_SGR into FEAT_MOUSE_XTERM / FEAT_MOUSE_TTY.
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-7/+7
| | | | | | | 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.0914: code related to findfile() is spread outv8.1.0914Bram Moolenaar2019-02-131-1926/+0
| | | | | | Problem: Code related to findfile() is spread out. Solution: Put findfile() related code into a new source file. (Yegappan Lakshmanan, closes #3934)
* patch 8.1.0864: cannot have a local value for 'scrolloff' and 'sidescrolloff'v8.1.0864Bram Moolenaar2019-01-311-4/+5
| | | | | | | Problem: Cannot have a local value for 'scrolloff' and 'sidescrolloff'. (Gary Holloway) Solution: Make 'scrolloff' and 'sidescrolloff' global-local. (mostly by Aron Widforss, closes #3539)
* patch 8.1.0845: having job_status() free the job causes problemsv8.1.0845Bram Moolenaar2019-01-291-0/+3
| | | | | | | Problem: Having job_status() free the job causes problems. Solution: Do not actually free the job or terminal yet, put it in a list and free it a bit later. Do not use a terminal after checking the job status. (closes #3873)
* patch 8.1.0843: memory leak when running "make test_cd"v8.1.0843Bram Moolenaar2019-01-291-0/+15
| | | | | | Problem: Memory leak when running "make test_cd". Solution: Free the stack element when failing. (Dominique Pelle, closes #3877)
* patch 8.1.0826: too many #ifdefsv8.1.0826Bram Moolenaar2019-01-261-31/+2
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
* patch 8.1.0806: too many #ifdefsv8.1.0806Bram Moolenaar2019-01-241-48/+5
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 2.
* patch 8.1.0785: depending on the configuration some functions are unusedv8.1.0785Bram Moolenaar2019-01-201-0/+4
| | | | | | 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-6/+6
| | | | | Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
* patch 8.1.0763: nobody is using the Sun Workshop supportv8.1.0763Bram Moolenaar2019-01-171-1/+1
| | | | | Problem: Nobody is using the Sun Workshop support. Solution: Remove the Workshop support.
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-25/+25
| | | | | | | | 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.0722: cannot build without the virtualedit featurev8.1.0722Bram Moolenaar2019-01-111-16/+18
| | | | | Problem: Cannot build without the virtualedit feature. Solution: Make getviscol2() always available.
* patch 8.1.0654: when deleting a line text property flags are not adjustedv8.1.0654Bram Moolenaar2018-12-281-0/+14
| | | | | Problem: When deleting a line text property flags are not adjusted. Solution: Adjust text property flags in preceding and following lines.
* patch 8.1.0615: get_tv function names are not consistentv8.1.0615Bram Moolenaar2018-12-211-1/+1
| | | | | Problem: Get_tv function names are not consistent. Solution: Rename to tv_get.
* patch 8.1.0614: placing signs can be complicatedv8.1.0614Bram Moolenaar2018-12-211-0/+13
| | | | | | | Problem: Placing signs can be complicated. Solution: Add functions for defining and placing signs. Introduce a group name to avoid different plugins using the same signs. (Yegappan Lakshmanan, closes #3652)
* patch 8.1.0604: autocommand test fails on MS-Windowsv8.1.0604Bram Moolenaar2018-12-161-1/+1
| | | | | Problem: Autocommand test fails on MS-Windows. Solution: Use pathcmp() instead of strcmp() to check if a directory differs.
* patch 8.1.0602: DirChanged is also triggered when directory didn't changev8.1.0602Bram Moolenaar2018-12-161-8/+20
| | | | | | Problem: DirChanged is also triggered when the directory didn't change. (Daniel Hahler) Solution: Compare the current with the new directory. (closes #3697)
* patch 8.1.0590: when a job ends the closed channels are not handledv8.1.0590Bram Moolenaar2018-12-141-13/+23
| | | | | | Problem: When a job ends the closed channels are not handled. Solution: When a job is detected to have ended, check the channels again. (closes #3530)
* patch 8.1.0579: cannot attach properties to textv8.1.0579Bram Moolenaar2018-12-131-0/+3
| | | | | Problem: Cannot attach properties to text. Solution: First part of adding text properties.
* patch 8.1.0519: cannot save and restore the tag stackv8.1.0519Bram Moolenaar2018-11-111-1/+1
| | | | | | Problem: Cannot save and restore the tag stack. Solution: Add gettagstack() and settagstack(). (Yegappan Lakshmanan, closes #3604)
* patch 8.1.0488: using freed memory in quickfix codev8.1.0488Bram Moolenaar2018-10-201-10/+13
| | | | | | Problem: Using freed memory in quickfix code. (Dominique Pelle) Solution: Add the quickfix_busy() flag to postpone deleting quickfix lists until it is safe. (Yegappan Lakshmanan, closes #3538)
* patch 8.1.0464: MS-Windows: job_info() has cmd without backslashesv8.1.0464Bram Moolenaar2018-10-071-4/+4
| | | | | | Problem: MS-Windows: job_info() has cmd without backslashes. (Daniel Hahler) Solution: Use rem_backslash(). (closes #3517, closes #3404)
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-10/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0342: crash when a callback deletes a window that is being usedv8.1.0342Bram Moolenaar2018-09-011-8/+13
| | | | | | | Problem: Crash when a callback deletes a window that is being used. Solution: Do not unload a buffer that is being displayed while redrawing the screen. Also avoid invoking callbacks while redrawing. (closes #2107)
* patch 8.1.0226: too many #ifdefsv8.1.0226Bram Moolenaar2018-07-291-2/+0
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +vreplace feature, it's not much code and quite a few #ifdefs.
* patch 8.1.0127: build failure when disabling the session featurev8.1.0127Bram Moolenaar2018-06-291-2/+2
| | | | | Problem: Build failure when disabling the session feature. (Pawel Slowik) Solution: Adjust #ifdef for vim_chdirfile().
* patch 8.0.1747: MS-Windows: term_start() does not set job_info() cmdv8.0.1747Bram Moolenaar2018-04-211-0/+62
| | | | | Problem: MS-Windows: term_start() does not set job_info() cmd. Solution: Share the code from job_start() to set jv_argv.
* patch 8.0.1745: build failure on MS-Windowsv8.0.1745Bram Moolenaar2018-04-211-0/+85
| | | | | Problem: Build failure on MS-Windows. Solution: Build job arguments for MS-Windows. Fix allocating job twice.
* patch 8.0.1660: the terminal API "drop" command doesn't support optionsv8.0.1660Bram Moolenaar2018-04-041-1/+1
| | | | | Problem: The terminal API "drop" command doesn't support options. Solution: Implement the options.
* patch 8.0.1620: reading spell file has no good EOF detectionv8.0.1620Bram Moolenaar2018-03-201-12/+36
| | | | | Problem: Reading spell file has no good EOF detection. Solution: Check for EOF at every character read for a length field.
* 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)