summaryrefslogtreecommitdiff
path: root/src/main.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.2064: MS-Windows: compiler warnings for unused argumentsv8.1.2064Bram Moolenaar2019-09-211-1/+1
| | | | | Problem: MS-Windows: compiler warnings for unused arguments. Solution: Add UNUSED. (Yegappan Lakshmanan, closes #4963)
* patch 8.1.2062: the mouse code is spread outv8.1.2062Bram Moolenaar2019-09-211-5/+1
| | | | | | Problem: The mouse code is spread out. Solution: Move all the mouse code to mouse.c. (Yegappan Lakshmanan, closes #4959)
* patch 8.1.2053: SafeStateAgain not triggered if callback uses feedkeys()v8.1.2053Bram Moolenaar2019-09-181-11/+38
| | | | | | Problem: SafeStateAgain not triggered if callback uses feedkeys(). Solution: Check for safe state in the input loop. Make log messages easier to find. Add 'S' flag to state().
* patch 8.1.2049: cannot build tiny versionv8.1.2049Bram Moolenaar2019-09-171-0/+8
| | | | | Problem: Cannot build tiny version. Solution: Add #ifdefs.
* patch 8.1.2048: not clear why SafeState and SafeStateAgain are not triggeredv8.1.2048Bram Moolenaar2019-09-171-1/+13
| | | | | Problem: Not clear why SafeState and SafeStateAgain are not triggered. Solution: Add log statements.
* patch 8.1.2047: cannot check the current statev8.1.2047Bram Moolenaar2019-09-161-15/+23
| | | | | Problem: Cannot check the current state. Solution: Add the state() function.
* patch 8.1.2046: SafeState may be triggered at the wrong momentv8.1.2046Bram Moolenaar2019-09-161-9/+11
| | | | | | Problem: SafeState may be triggered at the wrong moment. Solution: Move it up higher to after where messages are processed. Add a SafeStateAgain event to tigger there.
* patch 8.1.2044: no easy way to process postponed workv8.1.2044Bram Moolenaar2019-09-151-0/+65
| | | | | Problem: No easy way to process postponed work. (Paul Jolly) Solution: Add the SafeState autocommand event.
* patch 8.1.2029: cannot control 'cursorline' highlighting wellv8.1.2029Bram Moolenaar2019-09-141-3/+19
| | | | | Problem: Cannot control 'cursorline' highlighting well. Solution: Add "screenline". (Christian Brabandt, closes #4933)
* patch 8.1.2018: using freed memory when out of memory and displaying messagev8.1.2018Bram Moolenaar2019-09-091-10/+13
| | | | | Problem: Using freed memory when out of memory and displaying message. Solution: Make a copy of the message first.
* patch 8.1.1872: when Vim exits because of a signal, VimLeave is not triggeredv8.1.1872Bram Moolenaar2019-08-171-2/+14
| | | | | | Problem: When Vim exits because of a signal, VimLeave is not triggered. (Daniel Hahler) Solution: Unblock autocommands when triggering VimLeave. (closes #4818)
* patch 8.1.1453: popup window "moved" property not implemented yetv8.1.1453Bram Moolenaar2019-06-021-2/+9
| | | | | Problem: Popup window "moved" property not implemented yet. Solution: Implement it.
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-3/+3
| | | | | | 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.1375: without "TS" in 'shortmess' get a hit-enter prompt oftenv8.1.1375Bram Moolenaar2019-05-241-3/+5
| | | | | | Problem: Without "TS" in 'shortmess' get a hit-enter prompt often. Solution: Always truncate the search message. Also avoid putting it in the message history. (closes #4413)
* patch 8.1.1371: cannot recover from a swap filev8.1.1371Bram Moolenaar2019-05-231-7/+7
| | | | | | | 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.1306: Borland support is outdated and doesn't workv8.1.1306Bram Moolenaar2019-05-091-3/+0
| | | | | | 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.1301: when compiled with VIMDLL some messages are not shownv8.1.1301Bram Moolenaar2019-05-081-0/+10
| | | | | | Problem: When compiled with VIMDLL some messages are not shown. Solution: Set/reset gui.in_use and gui.starting as needed. (Ken Takata, closes #4361)
* patch 8.1.1258: the "N files to edit" message can not be surpressedv8.1.1258Bram Moolenaar2019-05-031-3/+3
| | | | | Problem: The "N files to edit" message can not be surpressed. Solution: Surpress the message with --not-a-term. (closes #4320)
* patch 8.1.1231: asking about existing swap file unnecessarilyv8.1.1231Bram Moolenaar2019-04-281-23/+6
| | | | | | Problem: Asking about existing swap file unnecessarily. Solution: When it is safe, delete the swap file. Remove HAS_SWAP_EXISTS_ACTION, it is always defined. (closes #1237)
* patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exev8.1.1230Bram Moolenaar2019-04-281-10/+39
| | | | | | 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.1197: when starting with multiple tabs file messages is confusingv8.1.1197Bram Moolenaar2019-04-211-0/+18
| | | | | Problem: When starting with multiple tabs file messages is confusing. Solution: Set 'shortmess' when loading the other tabs. (Christian Brabandt)
* patch 8.1.1116: cannot enforce a Vim script stylev8.1.1116Bram Moolenaar2019-04-041-0/+1
| | | | | Problem: Cannot enforce a Vim script style. Solution: Add the :scriptversion command. (closes #3857)
* patch 8.1.1104: MS-Windows: not all environment variables can be usedv8.1.1104Bram Moolenaar2019-04-031-1/+1
| | | | | | Problem: MS-Windows: not all environment variables can be used. Solution: Use the wide version of WinMain() and main(). (Ken Takata, closes #4206)
* patch 8.1.1066: VIMDLL isn't actually usedv8.1.1066Bram Moolenaar2019-03-281-3/+0
| | | | | Problem: VIMDLL isn't actually used. Solution: Remove VIMDLL support.
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-31/+31
| | | | | | | 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.0932: Farsi support is outdated and unusedv8.1.0932Bram Moolenaar2019-02-161-20/+1
| | | | | Problem: Farsi support is outdated and unused. Solution: Delete the Farsi support.
* patch 8.1.0806: too many #ifdefsv8.1.0806Bram Moolenaar2019-01-241-14/+6
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 2.
* patch 8.1.0783: compiler warning for signed/unsignedv8.1.0783Bram Moolenaar2019-01-191-1/+1
| | | | | Problem: Compiler warning for signed/unsigned. Solution: Add type cast. Change type of buffer. (Ozaki Kiichi, closes #3827)
* patch 8.1.0763: nobody is using the Sun Workshop supportv8.1.0763Bram Moolenaar2019-01-171-7/+1
| | | | | Problem: Nobody is using the Sun Workshop support. Solution: Remove the Workshop support.
* patch 8.1.0746: highlighting not updated with conceal and 'cursorline'v8.1.0746Bram Moolenaar2019-01-141-0/+5
| | | | | | | Problem: Highlighting not updated with conceal and 'cursorline'. (Jason Franklin) Solution: Do not use a zero line number. Check if 'conceallevel' is set for the current window.
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-2/+2
| | | | | | | | 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.0726: redrawing specifically for conceal featurev8.1.0726Bram Moolenaar2019-01-111-16/+16
| | | | | Problem: Redrawing specifically for conceal feature. Solution: Use generic redrawing methods.
* patch 8.1.0644: finding next sign ID is inefficientv8.1.0644Bram Moolenaar2018-12-271-0/+4
| | | | | Problem: Finding next sign ID is inefficient. Solution: Add next_sign_id. (Yegappan Lakshmanan, closes #3717)
* patch 8.1.0515: reloading a script gives errors for existing functionsv8.1.0515Bram Moolenaar2018-11-101-0/+2
| | | | | Problem: Reloading a script gives errors for existing functions. Solution: Allow redefining a function once when reloading a script.
* patch 8.1.0475: memory not freed on exit when quit in autocmdv8.1.0475Bram Moolenaar2018-10-141-7/+13
| | | | | 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-4/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0439: recursive use of getcmdline() still not protectedv8.1.0439Bram Moolenaar2018-09-301-0/+1
| | | | | | | Problem: Recursive use of getcmdline() still not protected. Solution: Instead of saving the command buffer when making a call which may cause recursiveness, save the buffer when actually being called recursively.
* patch 8.1.0394: diffs are not always updated correctlyv8.1.0394Bram Moolenaar2018-09-161-0/+9
| | | | | Problem: Diffs are not always updated correctly. Solution: When using internal diff update for any changes properly.
* patch 8.1.0377: xdiff doesn't use the Vim memory allocation functionsv8.1.0377Bram Moolenaar2018-09-131-1/+1
| | | | | | Problem: Xdiff doesn't use the Vim memory allocation functions. Solution: Change the xdl_ defines. Check for out-of-memory. Rename "ignored" to "vim_ignored".
* patch 8.1.0362: cannot get the script line number when executing a functionv8.1.0362Bram Moolenaar2018-09-101-8/+9
| | | | | | 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.0254: cannot build on MS-Windows; unused macro HAVE_HANDLE_DROPv8.1.0254Bram Moolenaar2018-08-071-1/+1
| | | | | Problem: Cannot build on MS-Windows; Unused macro HAVE_HANDLE_DROP. Solution: Adjust #ifdef. Delete the macro.
* patch 8.1.0253: saving and restoring window title does not always workv8.1.0253Bram Moolenaar2018-08-071-0/+4
| | | | | | Problem: Saving and restoring window title does not always work. Solution: Use the stack push and pop commands. (Kouichi Iwamoto, closes #3059)
* patch 8.1.0228: dropping files is ignored while Vim is busyv8.1.0228Bram Moolenaar2018-07-291-2/+8
| | | | | Problem: Dropping files is ignored while Vim is busy. Solution: Postpone the effect of dropping files until it's safe.
* patch 8.1.0103: long version string cannot be translatedv8.1.0103Bram Moolenaar2018-06-231-4/+2
| | | | | Problem: Long version string cannot be translated. Solution: Build the string in init_longVersion().
* patch 8.1.0094: help text "usage:" is not capatalizedv8.1.0094Bram Moolenaar2018-06-211-1/+1
| | | | | Problem: Help text "usage:" is not capatalized. Solution: Make it "Usage:". (closes #3044)
* patch 8.1.0082: in terminal window, typing : at more prompt, inserts ':'v8.1.0082Bram Moolenaar2018-06-191-2/+8
| | | | | | | Problem: In terminal window, typing : at more prompt, inserts ':' instead of starting another Ex command. Solution: Add skip_term_loop and set it when putting ':' in the typeahead buffer.
* patch 8.0.1792: MS-Windows users expect -? to work like --helpv8.0.1792Bram Moolenaar2018-05-051-0/+1
| | | | | Problem: MS-Windows users expect -? to work like --help. Solution: Add -?. (Christian Brabandt, closes #2867)
* patch 8.0.1726: older MSVC doesn't support declarations halfway a blockv8.0.1726Bram Moolenaar2018-04-161-6/+6
| | | | | Problem: Older MSVC doesn't support declarations halfway a block. Solution: Move the declaration back to the start of the block.
* patch 8.0.1724: declarations cannot be halfway a blockv8.0.1724Bram Moolenaar2018-04-161-1/+1
| | | | | Problem: Declarations cannot be halfway a block. Solution: Move one declaration to check if this works for all compilers.
* patch 8.0.1688: some macros are used without a semicolonv8.0.1688Bram Moolenaar2018-04-101-1/+1
| | | | | | 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)