h-east
965d2edbce
patch 8.2.3474: some places use "Vimscript" instead of "Vim script"
...
Problem: Some places use "Vimscript" instead of "Vim script".
Solution: Consistently use "Vim script". (Hirohito Higashi, closes #8910 )
2021-10-04 21:51:57 +01:00
Yegappan Lakshmanan
11328bc7df
patch 8.2.3300: Lua: can only execute on Vim command at a time
...
Problem: Lua: can only execute on Vim command at a time. Not easy to get
the Vim version.
Solution: Make vim.command() accept multiple lines. Add vim.version().
(Yegappan Lakshmanan, closes #8716 )
2021-08-06 21:34:38 +02:00
Bram Moolenaar
1b6acf02b7
patch 8.2.3294: Lua: memory leak when adding dict item fails
...
Problem: Lua: memory leak when adding dict item fails.
Solution: Free the typval and the dict item.
2021-08-05 16:47:08 +02:00
Bram Moolenaar
4a01159da2
patch 8.2.3291: Coverity warns for not checking return value
...
Problem: Coverity warns for not checking return value.
Solution: If dict_add() fails give an error message.
2021-08-05 15:11:08 +02:00
Yegappan Lakshmanan
9dc4bef897
patch 8.2.3288: cannot easily access namespace dictionaries from Lua
...
Problem: Cannot easily access namespace dictionaries from Lua.
Solution: Add vim.g, vim.b, etc. (Yegappan Lakshmanan, closes #8693 ,
from NeoVim)
2021-08-04 21:12:52 +02:00
Yegappan Lakshmanan
41114a2a27
patch 8.2.3244: Lua 5.3 print() with a long string crashes
...
Problem: Lua 5.3 print() with a long string crashes.
Solution: Use a growarray instead of a Lua buffer. (Yegappan Lakshmanan,
closes #8655 )
2021-07-29 20:22:14 +02:00
Bram Moolenaar
2a4bd00cef
patch 8.2.3240: Lua print() does not work properly
...
Problem: Lua print() does not work properly.
Solution: Put back lua_pop().
2021-07-28 21:48:59 +02:00
Bram Moolenaar
78e006b9b0
patch 8.2.3234: crash when printing long string with Lua
...
Problem: Crash when printing long string with Lua.
Solution: Remove lua_pop(). (Martin Tournoij, closes #8648 )
2021-07-28 15:07:01 +02:00
Martin Tournoij
1a3e5747b7
patch 8.2.3208: dynamic library load error does not mention why it failed
...
Problem: Dynamic library load error does not mention why it failed.
Solution: Add the error message. (Martin Tournoij, closes #8621 )
2021-07-24 13:57:29 +02:00
Bram Moolenaar
125ed2745c
patch 8.2.2733: detecting Lua version is not reliable
...
Problem: Detecting Lua version is not reliable.
Solution: Add "vim.lua_version". (Ozaki Kiichi, closes #8080 )
2021-04-07 20:11:12 +02:00
Bram Moolenaar
86c3a2162c
patch 8.2.2578: Lua cannot handle a passed in lambda
...
Problem: Lua cannot handle a passed in lambda.
Solution: Handle VAR_PARTIAL. (Prabir Shrestha, closes #7937 , closes #7936 )
2021-03-08 19:50:24 +01:00
Bram Moolenaar
c8970b9464
patch 8.2.1908: Lua is initialized even when not used
...
Problem: Lua is initialized even when not used.
Solution: Put lua_init() after check for "eap->skip". (Christian Brabandt,
closes #7191 ). Avoid compiler warnings.
2020-10-26 20:18:08 +01:00
Bram Moolenaar
066e7da3cd
patch 8.2.1234: Lua build problem with old compiler
...
Problem: Lua build problem with old compiler.
Solution: Move declarations to start of the block. (Taro Muraoka,
closes #6477 )
2020-07-18 12:50:35 +02:00
Bram Moolenaar
5551b131da
patch 8.2.1212: cannot build with Lua 5.4
...
Problem: Cannot build with Lua 5.4.
Solution: Use luaL_typeerror instead defining it. (closes #6454 )
2020-07-14 21:54:28 +02:00
Bram Moolenaar
a9a8e5f0dc
patch 8.2.1117: Coverity warns for unsing unitialized field
...
Problem: Coverity warns for unsing unitialized field.
Solution: Initialize v_lock.
2020-07-02 21:17:57 +02:00
Bram Moolenaar
e49b8e8d75
patch 8.2.1105: insufficient test coverage for Lua
...
Problem: Insufficient test coverage for Lua.
Solution: Add tests. (Yegappan Lakshmanan, closes #6368 ) Fix uncovered
memory leak. Avoid unnecessary copy/free.
2020-07-01 13:52:55 +02:00
Bram Moolenaar
a1f9f8666e
patch 8.2.1081: Lua: cannot use table.insert() and table.remove()
...
Problem: Lua: cannot use table.insert() and table.remove().
Solution: Add the list functions. (Prabir Shrestha, closes #6353 )
2020-06-28 22:41:26 +02:00
Bram Moolenaar
bd84617d1a
patch 8.2.1066: Lua arrays are zero based
...
Problem: Lua arrays are zero based.
Solution: Make Lua arrays one based. (Prabir Shrestha, closes #6347 )
Note: this is not backwards compatible.
2020-06-27 12:32:57 +02:00
Bram Moolenaar
1e4c7d0ed2
patch 8.2.1057: cannot build with dynamic Lua
...
Problem: Cannot build with dynamic Lua.
Solution: Add dll variables.
2020-06-25 20:56:42 +02:00
Bram Moolenaar
801ab06934
patch 8.2.1054: not so easy to pass a lua function to Vim
...
Problem: Not so easy to pass a lua function to Vim.
Solution: Convert a Lua function and closure to a Vim funcref. (Prabir
Shrestha, closes #6246 )
2020-06-25 19:27:56 +02:00
Bram Moolenaar
788fbb4707
patch 8.2.0858: not easy to require Lua modules
...
Problem: Not easy to require Lua modules.
Solution: Improve use of Lua path. (Prabir Shrestha, closes #6098 )
2020-05-31 14:08:12 +02:00
Bram Moolenaar
ca70c07b72
patch 8.2.0853: ml_delete() often called with FALSE argument
...
Problem: ml_delete() often called with FALSE argument.
Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
2020-05-30 20:30:46 +02:00
Bram Moolenaar
df1643a6a7
patch 8.2.0782: cannot build with Lua on MS-Windows
...
Problem: Cannot build with Lua on MS-Windows.
Solution: Add DLL symbol for luaL_Loadstring. (Ken Takata)
2020-05-17 18:53:27 +02:00
Bram Moolenaar
9309eb2f28
patch 8.2.0781: compiler warning for not using value in Lua
...
Problem: Compiler warning for not using value in Lua.
Solution: Add "(void)".
2020-05-17 16:53:56 +02:00
Bram Moolenaar
eb04f0893a
patch 8.2.0775: not easy to call a Vim function from Lua
...
Problem: Not easy to call a Vim function from Lua.
Solution: Add vim.call() and vim.fn(). (Prabir Shrestha, closes #6063 )
2020-05-17 14:32:35 +02:00
Bram Moolenaar
2027973b5b
patch 8.2.0479: unloading shared libraries on exit has no purpose
...
Problem: Unloading shared libraries on exit has no purpose.
Solution: Do not unload shared libraries on exit.
2020-03-29 20:51:07 +02:00
Bram Moolenaar
5f1d3ae8a8
patch 8.2.0244: compiler warning in Lua interface
...
Problem: Compiler warning in Lua interface.
Solution: Add type cast. (Ken Takata, closes #5621 )
2020-02-11 22:37:35 +01:00
Bram Moolenaar
8a7d6542b3
patch 8.2.0149: maintaining a Vim9 branch separately is more work
...
Problem: Maintaining a Vim9 branch separately is more work.
Solution: Merge the Vim9 script changes.
2020-01-26 15:56:19 +01:00
Bram Moolenaar
9b4a15d5db
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.
2020-01-11 16:05:23 +01:00
Bram Moolenaar
2ab2e8608f
patch 8.1.2387: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-12-04 21:24:53 +01:00
Bram Moolenaar
b98678a974
patch 8.1.2179: pressing "q" at the more prompt doesn't stop Python output
...
Problem: Pressing "q" at the more prompt doesn't stop Python output. (Daniel
Hahler)
Solution: Check for got_int in writer(). (closes #5053 )
Also do this for Lua.
2019-10-19 15:18:44 +02:00
Bram Moolenaar
7be3ab2589
patch 8.1.1583: set_ref_in_list() only sets ref in items
...
Problem: Set_ref_in_list() only sets ref in items.
Solution: Rename to set_ref_in_list_items() to avoid confusion.
2019-06-23 01:46:15 +02:00
Bram Moolenaar
6fb5c97242
patch 8.1.1054: not checking return value of ga_grow()
...
Problem: Not checking return value of ga_grow(). (Coverity)
Solution: Only append when ga_grow() returns OK.
2019-03-26 21:44:20 +01:00
Bram Moolenaar
b782869033
patch 8.1.1043: Lua interface does not support Blob
...
Problem: Lua interface does not support Blob.
Solution: Add support to Blob. (Ozaki Kiichi, closes #4151 )
2019-03-23 13:57:02 +01:00
Bram Moolenaar
4eefe47ea4
patch 8.1.1019: Lua: may garbage collect function reference in use
...
Problem: Lua: may garbage collect function reference in use.
Solution: Keep the function name instead of the typeval. Make luaV_setref()
handle funcref objects. (Ozaki Kiichi, closes #4127 )
2019-03-19 21:59:19 +01:00
Bram Moolenaar
713bf9e996
patch 8.1.1010: Lua interface leaks memory
...
Problem: Lua interface leaks memory.
Solution: Clear typeval after copying it.
2019-03-16 16:38:41 +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
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
9067cd6cdf
patch 8.1.0672: the Lua interface doesn't know about v:null
...
Problem: The Lua interface doesn't know about v:null.
Solution: Add Lua support for v:null. (Uji, closes #3744 )
2019-01-01 00:41:54 +01:00
Bram Moolenaar
830e3583da
patch 8.1.0305: missing support for Lua 5.4 32 bits on Unix
...
Problem: Missing support for Lua 5.4 32 bits on Unix.
Solution: Define lua_newuserdatauv. (Kazunobu Kuriyama)
2018-08-21 14:23:35 +02:00
Bram Moolenaar
53901442f3
patch 8.1.0212: preferred cursor column not set in interfaces
...
Problem: Preferred cursor column not set in interfaces.
Solution: Set w_set_curswant when setting the cursor. (David Hotham,
closes #3060 )
2018-07-25 22:02:36 +02:00
Bram Moolenaar
1741367131
patch 8.1.0183: Lua API changed, breaking the build
...
Problem: Lua API changed, breaking the build.
Solution: Adjust prototype of lua_rawgeti(). (Ken Takata,
closes #3157 , closes #3144 )
2018-07-14 20:49:42 +02:00
Bram Moolenaar
d6ef5f9b3d
patch 8.1.0180: static analysis errors in Lua interface
...
Problem: Static analysis errors in Lua interface. (Coverity)
Solution: Check for NULL pointers.
2018-07-13 22:08:23 +02:00
Bram Moolenaar
fe08df452a
patch 8.1.0164: luaeval('vim.buffer().name') returns an error
...
Problem: luaeval('vim.buffer().name') returns an error.
Solution: Return an empty string. (Dominique Pelle, closes #3167 )
2018-07-07 23:07:41 +02:00
Bram Moolenaar
ca06da9243
patch 8.1.0134: Lua interface does not support funcref
...
Problem: Lua interface does not support funcref.
Solution: Add funcref support. (Luis Carvalho)
2018-07-01 15:12:05 +02:00
Bram Moolenaar
0263146b5d
patch 8.0.1136: W_WIDTH() is always the same
...
Problem: W_WIDTH() is always the same.
Solution: Expand the macro.
2017-09-22 15:20:32 +02:00
Bram Moolenaar
4033c55eca
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
...
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always
enabled and only adds 7% to the binary size of the tiny build.
Solution: Graduate FEAT_WINDOWS.
2017-09-16 20:54:51 +02:00
Bram Moolenaar
d58f03b1c2
patch 8.0.0268: may get ml_get error when :luado deletes lines
...
Problem: May get ml_get error when :luado deletes lines or switches to
another buffer. (Nikolai Pavlov, issue #1421 )
Solution: Check the buffer and line every time.
2017-01-29 22:48:45 +01:00
Bram Moolenaar
d90b6c02e2
patch 7.4.2285
...
Problem: Generated files are outdated.
Solution: Generate the files. Avoid errors when generating prototypes.
2016-08-28 18:10:45 +02:00
Bram Moolenaar
2932359000
patch 7.4.2101
...
Problem: Looping over windows, buffers and tab pages is inconsistant.
Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
2016-07-24 22:04:11 +02:00