Bram Moolenaar
0f1c6708fd
patch 8.1.2091: double free when memory allocation fails
...
Problem: Double free when memory allocation fails. (Zu-Ming Jiang)
Solution: Use VIM_CLEAR() instead of vim_free(). (closes #4991 )
2019-09-28 15:24:00 +02:00
Bram Moolenaar
d103ee7843
patch 8.1.2053: SafeStateAgain not triggered if callback uses feedkeys()
...
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().
2019-09-18 21:15:31 +02:00
Bram Moolenaar
37d1807a80
patch 8.1.2048: not clear why SafeState and SafeStateAgain are not triggered
...
Problem: Not clear why SafeState and SafeStateAgain are not triggered.
Solution: Add log statements.
2019-09-17 20:28:38 +02:00
Bram Moolenaar
69198cb8c0
patch 8.1.2046: SafeState may be triggered at the wrong moment
...
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.
2019-09-16 21:58:13 +02:00
Bram Moolenaar
9c658c9eac
patch 8.1.2042: the evalfunc.c file is too big
...
Problem: The evalfunc.c file is too big.
Solution: Move getchar() and parse_queued_messages() to getchar.c.
2019-09-15 21:00:54 +02:00
Bram Moolenaar
e2c453d38f
patch 8.1.1901: the +insert_expand feature is not always available
...
Problem: The +insert_expand feature is not always available.
Solution: Graduate the +insert_expand feature.
2019-08-21 14:37:09 +02:00
Bram Moolenaar
5843f5f37b
patch 8.1.1891: functions used in one file are global
...
Problem: Functions used in one file are global.
Solution: Add "static". (Yegappan Lakshmanan, closes #4840 )
2019-08-20 20:13:45 +02:00
Bram Moolenaar
47ed553fd5
patch 8.1.1827: allocating more memory than needed for extended structs
...
Problem: Allocating more memory than needed for extended structs.
Solution: Use offsetof() instead of sizeof(). (Dominique Pelle,
closes #4786 )
2019-08-08 20:49:14 +02:00
Bram Moolenaar
749fa0af85
patch 8.1.1799: cannot avoid mapping for a popup window
...
Problem: Cannot avoid mapping for a popup window.
Solution: Add the "mapping" property, default TRUE.
2019-08-03 16:18:07 +02:00
Bram Moolenaar
eda35f7127
patch 8.1.1798: warning for unused variable in tiny version
...
Problem: Warning for unused variable in tiny version. (Tony Mechelynck)
Solution: Move inside #ifdef. Reformat code.
2019-08-03 14:59:44 +02:00
Bram Moolenaar
edd680f364
patch 8.1.1797: the vgetorpeek() function is too long
...
Problem: The vgetorpeek() function is too long.
Solution: Split off the part that handles mappings, with fix.
2019-08-03 14:23:48 +02:00
Bram Moolenaar
f2d8b7a0a6
patch 8.1.1794: tests are flaky
...
Problem: Tests are flaky.
Solution: Undo the change to vgetorpeek().
2019-08-02 22:46:11 +02:00
Bram Moolenaar
dd00035cb5
patch 8.1.1792: the vgetorpeek() function is too long
...
Problem: The vgetorpeek() function is too long.
Solution: Split off the part that handles mappings.
2019-08-02 21:35:33 +02:00
Bram Moolenaar
b66bab381c
patch 8.1.1785: map functionality mixed with character input
...
Problem: Map functionality mixed with character input.
Solution: Move the map functionality to a separate file. (Yegappan
Lakshmanan, closes #4740 ) Graduate the +localmap feature.
2019-08-01 14:28:24 +02:00
Bram Moolenaar
14371ed697
patch 8.1.1759: no mode char for terminal mapping from maparg()
...
Problem: No mode char for terminal mapping from maparg().
Solution: Check for TERMINAL mode. (closes #4735 )
2019-07-27 21:05:21 +02:00
Bram Moolenaar
c2f5054be9
patch 8.1.1640: the CursorHold autocommand takes down a balloon
...
Problem: The CursorHold autocommand takes down a balloon. (Paul Jolly)
Solution: Ignore the CursorHold pseudo-key.
2019-07-05 23:24:56 +02:00
Bram Moolenaar
7d491c4253
patch 8.1.1591: on error garbage collection may free memory in use
...
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 )
2019-06-25 06:28:02 +02:00
Bram Moolenaar
bf0eff0b72
patch 8.1.1441: popup window filter not yet implemented
...
Problem: Popup window filter not yet implemented.
Solution: Implement the popup filter.
2019-06-01 17:13:36 +02:00
Bram Moolenaar
c799fe206e
patch 8.1.1414: alloc() returning "char_u *" causes a lot of type casts
...
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.
2019-05-28 23:08:19 +02:00
Bram Moolenaar
18a4ba29ae
patch 8.1.1386: unessesary type casts for lalloc()
...
Problem: Unessesary type casts for lalloc().
Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
2019-05-24 19:39:03 +02:00
Bram Moolenaar
964b3746b9
patch 8.1.1384: using "int" for alloc() often results in compiler warnings
...
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.
2019-05-24 18:54:09 +02:00
Bram Moolenaar
5357552140
patch 8.1.1365: source command doesn't check for the sandbox
...
Problem: Source command doesn't check for the sandbox. (Armin Razmjou)
Solution: Check for the sandbox when sourcing a file.
2019-05-22 22:38:25 +02:00
Bram Moolenaar
386b43e594
patch 8.1.1358: cannot enter character with a CSI byte
...
Problem: Cannot enter character with a CSI byte.
Solution: Only check "gui.in_use" when VIMDLL is defined. (Ken Takata,
closes #4396 )
2019-05-19 21:57:11 +02:00
Bram Moolenaar
ed5ab2a959
patch 8.1.1269: MS-Windows GUI: multibyte chars with a 0x80 byte do not work
...
Problem: MS-Windows GUI: multibyte chars with a 0x80 byte do not work when
compiled with VIMDLL.
Solution: Adjust the condition for fixing the input buffer. (Ken Takata,
closes #4330 )
2019-05-04 20:00:00 +02:00
Bram Moolenaar
2cb9f02532
patch 8.1.1251: no test for completion of mapping keys
...
Problem: No test for completion of mapping keys.
Solution: Add a test. Also clean up the code.
2019-05-03 15:13:57 +02:00
Bram Moolenaar
a9dd2d3c75
patch 8.1.1239: key with byte sequence containing CSI does not work
...
Problem: Key with byte sequence containing CSI does not work.
Solution: Do not recognize CSI as special unless the GUI is active. (Ken
Takata, closes #4318 )
2019-04-29 21:58:41 +02:00
Bram Moolenaar
afde13b62b
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
...
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 )
2019-04-28 19:46:49 +02:00
Bram Moolenaar
725310d89e
patch 8.1.1201: output of :command is hard to read
...
Problem: Output of :command is hard to read.
Solution: Make some columns wider, some narrower. Truncate the command when
listing all.
2019-04-24 23:08:23 +02:00
Bram Moolenaar
86ec6d7e1e
patch 8.1.1185: mapping for CTRL-X is inconsistent
...
Problem: Mapping for CTRL-X is inconsistent.
Solution: Map CTRL-X to "*d also for the MS-Windows console. (Ken Takata,
closes #4265 )
2019-04-18 21:09:02 +02:00
Bram Moolenaar
652de23dc7
patch 8.1.1118: a couple of conditions are hard to understand
...
Problem: A couple of conditions are hard to understand.
Solution: Split the conditions into pieces. (Ozaki Kiichi, closes #3879 )
2019-04-04 20:13:09 +02:00
Bram Moolenaar
abab0b0fdd
patch 8.1.1086: too many curly braces
...
Problem: Too many curly braces.
Solution: Remove curly braces where they are not needed. (Hirohito Higashi,
closes #3982 )
2019-03-30 18:47:01 +01:00
Bram Moolenaar
6edbbd8114
patch 8.1.1003: playing back recorded key sequence mistakes key code
...
Problem: Playing back recorded key sequence mistakes key code.
Solution: Insert a <Nop> after the <Esc>. (closes #4068 )
2019-03-10 09:41:51 +01:00
Bram Moolenaar
fd731b0e31
patch 8.1.1000: indenting is off
...
Problem: Indenting is off.
Solution: Make indenting consistent and update comments. (Ozaki Kiichi,
closes #4079 )
2019-03-09 11:23:58 +01:00
Bram Moolenaar
4f97475d32
patch 8.1.0941: macros for MS-Windows are inconsistent
...
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 )
2019-02-17 17:44:42 +01:00
Bram Moolenaar
14184a3133
patch 8.1.0932: Farsi support is outdated and unused
...
Problem: Farsi support is outdated and unused.
Solution: Delete the Farsi support.
2019-02-16 15:10:30 +01:00
Bram Moolenaar
cb574f4154
patch 8.1.0822: peeking and flushing output slows down execution
...
Problem: Peeking and flushing output slows down execution.
Solution: Do not update the mode message when global_busy is set. Do not
flush when only peeking for a character. (Ken Takata)
2019-01-25 22:29:57 +01:00
Bram Moolenaar
264b74fa54
patch 8.1.0810: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 4.
2019-01-24 17:18:42 +01:00
Bram Moolenaar
113e10721f
patch 8.1.0785: depending on the configuration some functions are unused
...
Problem: Depending on the configuration some functions are unused.
Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle,
closes #3822 )
2019-01-20 15:30:40 +01:00
Bram Moolenaar
32526b3c18
patch 8.1.0779: argument for message functions is inconsistent
...
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
2019-01-19 17:43:09 +01:00
Bram Moolenaar
f9e3e09fdc
patch 8.1.0743: giving error messages is not flexible
...
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.
2019-01-13 23:38:42 +01:00
Bram Moolenaar
6a2633b00b
patch 8.1.0466: autocmd test fails
...
Problem: Autocmd test fails.
Solution: Do call inchar() when flushing typeahead.
2018-10-07 23:16:36 +02:00
Bram Moolenaar
6dff58f15c
patch 8.1.0443: unnecessary static function prototypes
...
Problem: Unnecessary static function prototypes.
Solution: Remove unnecessary prototypes.
2018-09-30 21:43:26 +02:00
Bram Moolenaar
438d176e35
patch 8.1.0439: recursive use of getcmdline() still not protected
...
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.
2018-09-30 17:11:48 +02:00
Bram Moolenaar
f29c1c6aa3
patch 8.1.0362: cannot get the script line number when executing a function
...
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".
2018-09-10 21:05:02 +02:00
Bram Moolenaar
8e85db0376
patch 8.1.0216: part of file not indented properly
...
Problem: Part of file not indented properly.
Solution: Adjust the indent. (Ken Takata)
2018-07-27 23:16:51 +02:00
Bram Moolenaar
972bfddc6b
patch 8.1.0140: recording into a register has focus events
...
Problem: Recording into a register has focus events. (Michael Naumann)
Solution: Don't record K_FOCUSGAINED and K_FOCUSLOST. (closes #3143 )
2018-07-03 14:48:15 +02:00
Bram Moolenaar
83f4cbd973
patch 8.1.0052: when mapping to <Nop> times out the next mapping is skipped
...
Problem: When a mapping to <Nop> times out the next mapping is skipped.
Solution: Reset "timedout" when waiting for a character. (Christian
Brabandt, closes #2921 )
2018-06-12 21:35:40 +02:00
Bram Moolenaar
833093bfb0
patch 8.1.0022: repeating put from expression register fails
...
Problem: Repeating put from expression register fails.
Solution: Re-evaluate the expression register. (Andy Massimino,
closes #2945 )
2018-05-23 21:53:52 +02:00
Bram Moolenaar
0b6d911e5d
patch 8.1.0020: cannot tell whether a register is executing or recording
...
Problem: Cannot tell whether a register is being used for executing or
recording.
Solution: Add reg_executing() and reg_recording(). (Hirohito Higashi,
closes #2745 ) Rename the global variables for consistency. Store
the register name in reg_executing.
2018-05-22 20:35:17 +02:00
Bram Moolenaar
259f26ac2d
patch 8.0.1845: various comment updates needed, missing white space
...
Problem: Various comment updates needed, missing white space.
Solution: Update comments, add white space.
2018-05-15 22:25:40 +02:00