Jacques Germishuys
a166c2aadb
eval_call_provider(): free unused return value #12819
...
Caller can pass discard=true to free the unwanted return value.
2020-09-01 20:22:42 -07:00
Jan Edmund Lazo
1d9b146ce3
vim-patch:8.2.0607: gcc warns for using uninitialized variable
...
Problem: Gcc warns for using uninitialized variable. (John Marriott)
Solution: Set name_end also for environment variables.
2bb76accc6
2020-08-19 21:38:42 -04:00
Jan Edmund Lazo
161cdba1e3
vim-patch:8.2.1471: :const only locks the variable, not the value ( #12765 )
...
Problem: :const only locks the variable, not the value.
Solution: Lock the value as ":lockvar 1 var" would do. (closes vim/vim#6719 )
241572794f
2020-08-16 17:13:52 -07:00
Jan Edmund Lazo
bc2c75cbd7
vim-patch:8.2.1379: curly braces expression ending in " }" does not work
...
Problem: Curly braces expression ending in " }" does not work.
Solution: Skip over white space when checking for "}". (closes vim/vim#6634 )
ae95a3946b
2020-08-14 18:20:29 -04:00
Jan Edmund Lazo
037f532076
vim-patch:8.2.1361: error for white space after expression in assignment
...
Problem: Error for white space after expression in assignment.
Solution: Skip over white space. (closes vim/vim#6617 )
6a25026262
2020-08-14 18:20:28 -04:00
Jan Edmund Lazo
9abfb85264
vim-patch:8.2.1360: stray error for white space after expression
...
Problem: Stray error for white space after expression.
Solution: Ignore trailing white space. (closes vim/vim#6608 )
f96e9dec63
2020-08-14 18:20:28 -04:00
erw7
950ca6abcd
eval: improve ex_execute ( #12445 )
2020-07-20 11:01:14 +02:00
Jan Edmund Lazo
bf88228180
vim-patch:8.2.0899: assert_equalfile() does not give a hint about the difference
...
Problem: Assert_equalfile() does not give a hint about the difference.
Solution: Display the last seen text.
30cc44a97f
2020-07-19 11:40:34 -04:00
Jan Edmund Lazo
93f2dc0d03
vim-patch:8.2.0893: assert_equalfile() does not take a third argument
...
Problem: Assert_equalfile() does not take a third argument.
Solution: Implement the third argument. (Gary Johnson)
fb517bac23
2020-07-19 11:40:34 -04:00
Jan Edmund Lazo
ab69ea26dc
vim-patch:8.1.0819: a failed assert with a long string is hard to read
...
Problem: A failed assert with a long string is hard to read.
Solution: Shorten the assert message.
865767126e
2020-07-19 11:40:34 -04:00
TJ DeVries
6360cf7ce8
lua: Add ability to pass tables with __call
...
vim-patch:8.2.1054: not so easy to pass a lua function to Vim
vim-patch:8.2.1084: Lua: registering function has useless code
I think I have also opened up the possibility for people to use these
callbacks elsewhere, since I've added a new struct that we should be
able to use.
Also, this should allow us to determine what the state of a list is in
Lua or a dictionary in Lua, since we now can track the luaref as we go.
2020-07-10 20:23:12 -04:00
Jan Edmund Lazo
edaff441de
vim-patch:8.1.1372: when evaluating 'statusline' the current window is unknown
...
Problem: When evaluating 'statusline' the current window is unknown.
(Daniel Hahler)
Solution: Set "g:actual_curwin" for %{} items. Set "g:statusline_winid"
when evaluationg %!. (closes vim/vim#4406 , closes vim/vim#3299 )
1c6fd1e100
2020-07-04 10:05:34 -04:00
Jan Edmund Lazo
e34a7bca68
eval: fix pvs/v547
2020-06-18 18:01:42 -04:00
Billy Su
22f6da9514
vim-patch:8.2.0629: setting a boolean option to v:false does not work
...
Problem: Setting a boolean option to v:false does not work.
Solution: Do not use the string representation of the value. (Christian
Brabandt, closes vim/vim#5974 )
65d032c779
2020-06-06 23:25:07 +08:00
Billy Su
1805fb469a
vim-patch:8.2.0111: VAR_SPECIAL is also used for booleans
...
Problem: VAR_SPECIAL is also used for booleans.
Solution: Add VAR_BOOL for better type checking.
9b4a15d5db
2020-06-06 23:24:58 +08:00
Jan Edmund Lazo
ed85d68123
vim-patch:8.1.2335: error message for function arguments may use NULL pointer
...
Problem: Error message for function arguments may use NULL pointer.
(Coverity)
Solution: Use the original function name.
2118a30295
2020-06-04 20:52:53 -04:00
Jan Edmund Lazo
909af2f3f1
vim-patch:8.2.0491: cannot recognize a <script> mapping using maparg()
...
Problem: Cannot recognize a <script> mapping using maparg().
Solution: Add the "script" key. (closes vim/vim#5873 )
2da0f0c445
2020-06-04 20:52:53 -04:00
Matthieu Coudron
8c588246a5
Merge pull request #10905 from erw7/vim-8.1.0475
...
vim-patch:8.1.{475,800,868,1007,1027,1031,1033,1037,1058,1435,1484,1485}
2020-05-25 14:01:36 +02:00
erw7
a532fb2cf4
eval: fix problem with free_unref_funccal not being called
2020-05-25 18:52:30 +09:00
erw7
c3dab08c8f
vim-patch:8.1.1485: double free when garbage_collect() is used in autocommand
...
Problem: Double free when garbage_collect() is used in autocommand.
Solution: Have garbage collection also set the copyID in funccal_stack.
c07f67ad0e
2020-05-25 18:52:30 +09:00
Daniel Hahler
0cab85df4d
vim-patch:8.1.1484: some tests are slow
...
Problem: Some tests are slow.
Solution: Add timing to the test messages. Fix double free when quitting in
VimLeavePre autocmd.
75ee544f99
2020-05-25 18:52:29 +09:00
kuuote
e89462d985
vim-patch:8.1.2233: cannot get the Vim command line arguments ( #12117 )
...
Problem: Cannot get the Vim command line arguments.
Solution: Add v:argv. (Dmitri Vereshchagin, closes vim/vim#1322 )
69bf634858
2020-05-24 20:45:25 +02:00
Shougo
d7d69fed18
vim-patch:8.1.1084: cannot delete a match from another window ( #12325 )
...
Problem: Cannot delete a match from another window. (Paul Jolly)
Solution: Add window ID argument to matchdelete(), clearmatches(),
getmatches() and setmatches(). (Andy Massimino, closes vim/vim#4178 )
aff749145e
2020-05-16 15:25:51 +02:00
erw7
1212390254
vim-patch:8.1.1007: using closure may consume a lot of memory
...
Problem: Using closure may consume a lot of memory.
Solution: unreference items that are no longer needed. Add a test. (Ozaki
Kiichi, closes vim/vim#3961 )
209b8e3e3b
2020-05-07 16:47:41 +09:00
erw7
17f067f4b4
vim-patch:8.1.0475: memory not freed on exit when quit in autocmd
...
Problem: Memory not freed on exit when quit in autocmd.
Solution: Remember funccal stack when executing autocmd.
27e80c885b
2020-05-07 16:00:46 +09:00
Hennadii Chernyshchyk
d2766b06c8
vim-patch:8.1.1120: cannot easily get directory entry matches #12222
...
Problem: Cannot easily get directory entry matches.
Solution: Add the readdir() function. (Yasuhiro Matsumoto, closes vim/vim#2439 )
543c9b1921
closes #12212
2020-05-05 08:15:45 -07:00
Matthieu Coudron
d90a92bcd3
Merge pull request #12018 from janlazo/vim-8.0.1123
...
[RFC]vim-patch:8.0.{1123,1125,1138,1139,1142,1292,1334,1375},8.1.1264
2020-04-27 13:53:41 +02:00
Justin M. Keyes
fc98f2d581
Merge #11851 'eval.c: factor out eval/userfunc.c'
...
vim-patch:7.4.2058
2020-04-27 01:45:30 -04:00
Justin M. Keyes
6b050a145d
Merge #11851 'eval.c: factor out eval/userfunc.c'
...
vim-patch:7.4.2058
2020-04-26 20:01:58 -07:00
Jan Edmund Lazo
64b61d49c2
vim-patch:8.0.1123: cannot define a toolbar for a window
...
Problem: Cannot define a toolbar for a window.
Solution: Add a window-local toolbar.
1b9645de3c
"WinBar" code in "screen.c" was not ported.
Fix https://github.com/neovim/neovim/issues/11513#issuecomment-562012827
2020-04-26 19:17:16 -04:00
Rob Pilling
978a6bcaf2
vim-patch:8.1.2225: the "last used" info of a buffer is under used
...
Problem: The "last used" info of a buffer is under used.
Solution: Add "lastused" to getbufinfo(). List buffers sorted by last-used
field. (Andi Massimino, closes vim/vim#4722 )
52410575be
2020-04-21 21:40:22 +01:00
Jan Edmund Lazo
5726272559
vim-patch:8.2.0507: getbufvar() may get the wrong dictionary
...
Problem: Getbufvar() may get the wrong dictionary. (David le Blanc)
Solution: Check for empty name. (closes vim/vim#5878 )
5259275347
2020-04-13 12:00:34 -04:00
Jan Edmund Lazo
16a4581349
vim-patch:8.1.2282: crash when passing many arguments through a partial
...
Problem: Crash when passing many arguments through a partial. (Andy
Massimino)
Solution: Check the number of arguments. (closes vim/vim#5186 )
4c054e9fb2
2020-04-13 12:00:32 -04:00
Jan Edmund Lazo
dbb386e1b2
vim-patch:8.1.2280: crash when passing partial to substitute()
...
Problem: Crash when passing partial to substitute().
Solution: Take extra arguments into account. (closes vim/vim#5186 )
b0745b221d
2020-04-13 12:00:31 -04:00
Jan Edmund Lazo
73dc9e943c
vim-patch:8.1.2378: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
5d18efecfd
2020-04-12 15:56:40 -04:00
Jan Edmund Lazo
b00650cfe9
vim-patch:8.2.0361: internal error when using "0" for a callback
...
Problem: Internal error when using "0" for a callback.
Solution: Give a normal error. (closes vim/vim#5743 )
14e57909e6
2020-03-07 23:37:27 -05:00
Jan Edmund Lazo
3c12ee333a
vim-patch:8.1.0619: :echomsg and :echoerr do not handle List and Dict
...
Problem: :echomsg and :echoerr do not handle List and Dict like :echo does.
(Daniel Hahler)
Solution: Be more tolerant about the expression result type.
461a7fcfce
Add lua functional tests for :echo,:echon,:echomsg,:echoerr
because nvim did not port "test_" functions from Vim
that modify internal state.
Testing :echoerr via try/catch is sufficient.
2020-02-29 17:40:00 -05:00
Jan Edmund Lazo
1ce4b3c9a7
vim-patch:8.2.0267: no check for a following cmd when calling a function fails
...
Problem: No check for a following command when calling a function fails.
Solution: Also check for a following command when inside a try block.
(closes vim/vim#5642 )
e51bb17dd0
2020-02-16 18:04:44 -05:00
Jan Edmund Lazo
18d86283b0
vim-patch:8.0.1660: the terminal API "drop" command doesn't support options
...
Problem: The terminal API "drop" command doesn't support options.
Solution: Implement the options.
333b80acf3
2020-02-16 09:38:14 -05:00
Jakub Łuczyński
5e815edece
rename: user_funcs -> userfunc
...
Lets stick with vim for now
2020-02-13 14:11:55 +01:00
Jakub Łuczyński
c7ef0e8d2d
fix: moved some static inline function
2020-02-13 14:11:50 +01:00
Jakub Łuczyński
3c413f1523
fix: vvlua_partial
2020-02-13 14:11:48 +01:00
Jakub Łuczyński
1e0a9b2690
fix: made eval_lavars_used global
2020-02-13 14:11:47 +01:00
Jakub Łuczyński
937da5dd7e
Removed redundant define
2020-02-13 14:11:42 +01:00
Jakub Łuczyński
423fcbee4a
fix: factor out make_partial
2020-02-13 14:11:40 +01:00
Jakub Łuczyński
b683957763
fix: prof functions
2020-02-13 14:11:39 +01:00
Jakub Łuczyński
04f7e1f56d
fix: var_set_global
2020-02-13 14:11:37 +01:00
Jakub Łuczyński
bae1738bce
fix: find_var_ht_dict
2020-02-13 14:11:35 +01:00
Jakub Łuczyński
e50b545676
fix: factor out new functions
...
free_unref_funccal
get_funccal_local_var
get_funccal_args_var
get_current_funccal_dict
set_ref_in_previous_funccal
set_ref_in_call_stack
set_ref_in_func_args
note:
In vim semantic for garbage_collect was changed
(the result of free_unref_funccal is ignored, bug or intentional?)
For nvim I did leave previous behavior thus
did_free = did_free || free_unref_funccal(copyID, testing);
instead of just
free_unref_funccal(copyID, testing);
2020-02-13 14:11:34 +01:00
Jakub Łuczyński
c769b15fe4
fix: func_init
2020-02-13 14:11:32 +01:00