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
Jakub Łuczyński
700d7a037c
unstatic some functions
2020-02-13 14:11:29 +01:00
Jakub Łuczyński
3b0475927c
moved more stuff
2020-02-13 14:11:27 +01:00
Jakub Łuczyński
9b140fafe3
moved functions to user_funcs.c (no code changes)
2020-02-13 14:11:21 +01:00
erw7
d54b5997b7
Fix issue where callbacks are garbage collected
...
Import necessary part of vim-patch:8.1.1575.
75a1a9415b
2020-02-12 16:03:54 +09:00
erw7
aec3d7915c
vim-patch:8.1.0091: MS-Windows: Cannot interrupt gdb when program is running
...
Problem: MS-Windows: Cannot interrupt gdb when program is running.
Solution: Add debugbreak() and use it in the terminal debugger.
Respect 'modified' in a prompt buffer.
4551c0a9fc
2020-02-12 16:03:45 +09:00
erw7
fe395ae210
vim-patch:8.1.0069: cannot handle pressing CTRL-C in a prompt buffer
...
Problem: Cannot handle pressing CTRL-C in a prompt buffer.
Solution: Add prompt_setinterrupt().
0e5979a6d4
2020-02-12 15:30:06 +09:00
erw7
4813ad48cd
vim-patch:8.1.0027: difficult to make a plugin that feeds a line to a job
...
Problem: Difficult to make a plugin that feeds a line to a job.
Solution: Add the nitial code for the "prompt" buftype.
f273245f64
2020-02-12 15:16:32 +09:00
Jakub Łuczyński
6c5bbf07d9
eval.c: factor out eval/funcs.c #11828
...
close #11828
ref #5081
cf. vim patch 7.4.2063
2020-02-10 00:36:26 -08:00
Jan Edmund Lazo
31f31b40a8
vim-patch:8.2.0077: settagstack() cannot truncate at current index
...
Problem: settagstack() cannot truncate at current index.
Solution: Add the "t" action. (Yegappan Lakshmanan, closes vim/vim#5417 )
271fa08a35
2020-01-29 21:00:11 -05:00
Jan Edmund Lazo
0b49cb67f2
vim-patch:8.2.0171: fix use of uninitialized buffer #11786
...
Problem: Coverity warning for using uninitialized buffer.
Solution: Check the skip flag.
9a5e5a3e33
2020-01-28 23:02:11 -08:00
Justin M. Keyes
75e8562249
refactor: move session functions to ex_session.c
2020-01-28 00:22:14 -08:00
Justin M. Keyes
07a105f0cb
terminal: trim CWD slash #11762
...
Trailing CWD slash in term:// buffer name breaks the BufReadCmd
handler.
Before:
term://~///25232:/bin/bash
After:
term://~//25232:/bin/bash
ref c6ff23d7a0
ref #11289
2020-01-26 02:13:37 -08:00
Chris LaRose
c6ff23d7a0
terminal: absolute CWD in term:// URI #11289
...
This makes it possible to restore the working directory of :terminal
buffers when reading those buffers from a session file.
Fixes #11288
Co-authored-by: Justin M. Keyes <justinkz@gmail.com >
2020-01-26 00:24:42 -08:00
Björn Linse
91bd1ddf3b
Merge pull request #11740 from Billy4195/fix_jobstop
...
make jobstop() return 0 instead of throw error for already stopped job
2020-01-22 19:23:29 +01:00
Billy Su
041ec8997a
Fix f_jobstop() failed loudly
...
The return value of jobstop()
@return 1 for valid job id
0 for invalid id, including jobs have exited or stopped
2020-01-22 17:30:43 +08:00