summaryrefslogtreecommitdiff
path: root/src/if_lua.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar2022-01-011-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3474: some places use "Vimscript" instead of "Vim script"v8.2.3474h-east2021-10-041-1/+1
| | | | | Problem: Some places use "Vimscript" instead of "Vim script". Solution: Consistently use "Vim script". (Hirohito Higashi, closes #8910)
* patch 8.2.3300: Lua: can only execute on Vim command at a timev8.2.3300Yegappan Lakshmanan2021-08-061-3/+31
| | | | | | | 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)
* patch 8.2.3294: Lua: memory leak when adding dict item failsv8.2.3294Bram Moolenaar2021-08-051-1/+9
| | | | | Problem: Lua: memory leak when adding dict item fails. Solution: Free the typval and the dict item.
* patch 8.2.3291: Coverity warns for not checking return valuev8.2.3291Bram Moolenaar2021-08-051-1/+2
| | | | | Problem: Coverity warns for not checking return value. Solution: If dict_add() fails give an error message.
* patch 8.2.3288: cannot easily access namespace dictionaries from Luav8.2.3288Yegappan Lakshmanan2021-08-041-0/+138
| | | | | | Problem: Cannot easily access namespace dictionaries from Lua. Solution: Add vim.g, vim.b, etc. (Yegappan Lakshmanan, closes #8693, from NeoVim)
* patch 8.2.3244: Lua 5.3 print() with a long string crashesv8.2.3244Yegappan Lakshmanan2021-07-291-8/+15
| | | | | | Problem: Lua 5.3 print() with a long string crashes. Solution: Use a growarray instead of a Lua buffer. (Yegappan Lakshmanan, closes #8655)
* patch 8.2.3240: Lua print() does not work properlyv8.2.3240Bram Moolenaar2021-07-281-0/+1
| | | | | Problem: Lua print() does not work properly. Solution: Put back lua_pop().
* patch 8.2.3234: crash when printing long string with Luav8.2.3234Bram Moolenaar2021-07-281-2/+2
| | | | | Problem: Crash when printing long string with Lua. Solution: Remove lua_pop(). (Martin Tournoij, closes #8648)
* patch 8.2.3208: dynamic library load error does not mention why it failedv8.2.3208Martin Tournoij2021-07-241-1/+3
| | | | | Problem: Dynamic library load error does not mention why it failed. Solution: Add the error message. (Martin Tournoij, closes #8621)
* patch 8.2.2733: detecting Lua version is not reliablev8.2.2733Bram Moolenaar2021-04-071-0/+23
| | | | | Problem: Detecting Lua version is not reliable. Solution: Add "vim.lua_version". (Ozaki Kiichi, closes #8080)
* patch 8.2.2578: Lua cannot handle a passed in lambdav8.2.2578Bram Moolenaar2021-03-081-0/+5
| | | | | Problem: Lua cannot handle a passed in lambda. Solution: Handle VAR_PARTIAL. (Prabir Shrestha, closes #7937, closes #7936)
* patch 8.2.1908: Lua is initialized even when not usedv8.2.1908Bram Moolenaar2020-10-261-9/+10
| | | | | | Problem: Lua is initialized even when not used. Solution: Put lua_init() after check for "eap->skip". (Christian Brabandt, closes #7191). Avoid compiler warnings.
* patch 8.2.1234: Lua build problem with old compilerv8.2.1234Bram Moolenaar2020-07-181-2/+8
| | | | | | Problem: Lua build problem with old compiler. Solution: Move declarations to start of the block. (Taro Muraoka, closes #6477)
* patch 8.2.1212: cannot build with Lua 5.4v8.2.1212Bram Moolenaar2020-07-141-1/+10
| | | | | Problem: Cannot build with Lua 5.4. Solution: Use luaL_typeerror instead defining it. (closes #6454)
* patch 8.2.1117: Coverity warns for unsing unitialized fieldv8.2.1117Bram Moolenaar2020-07-021-0/+2
| | | | | Problem: Coverity warns for unsing unitialized field. Solution: Initialize v_lock.
* patch 8.2.1105: insufficient test coverage for Luav8.2.1105Bram Moolenaar2020-07-011-13/+16
| | | | | | Problem: Insufficient test coverage for Lua. Solution: Add tests. (Yegappan Lakshmanan, closes #6368) Fix uncovered memory leak. Avoid unnecessary copy/free.
* patch 8.2.1081: Lua: cannot use table.insert() and table.remove()v8.2.1081Bram Moolenaar2020-06-281-9/+22
| | | | | Problem: Lua: cannot use table.insert() and table.remove(). Solution: Add the list functions. (Prabir Shrestha, closes #6353)
* patch 8.2.1066: Lua arrays are zero basedv8.2.1066Bram Moolenaar2020-06-271-1/+11
| | | | | | Problem: Lua arrays are zero based. Solution: Make Lua arrays one based. (Prabir Shrestha, closes #6347) Note: this is not backwards compatible.
* patch 8.2.1057: cannot build with dynamic Luav8.2.1057Bram Moolenaar2020-06-251-0/+10
| | | | | Problem: Cannot build with dynamic Lua. Solution: Add dll variables.
* patch 8.2.1054: not so easy to pass a lua function to Vimv8.2.1054Bram Moolenaar2020-06-251-1/+100
| | | | | | 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)
* patch 8.2.0858: not easy to require Lua modulesv8.2.0858Bram Moolenaar2020-05-311-9/+95
| | | | | Problem: Not easy to require Lua modules. Solution: Improve use of Lua path. (Prabir Shrestha, closes #6098)
* patch 8.2.0853: ml_delete() often called with FALSE argumentv8.2.0853Bram Moolenaar2020-05-301-1/+1
| | | | | Problem: ml_delete() often called with FALSE argument. Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
* patch 8.2.0782: cannot build with Lua on MS-Windowsv8.2.0782Bram Moolenaar2020-05-171-0/+3
| | | | | Problem: Cannot build with Lua on MS-Windows. Solution: Add DLL symbol for luaL_Loadstring. (Ken Takata)
* patch 8.2.0781: compiler warning for not using value in Luav8.2.0781Bram Moolenaar2020-05-171-1/+1
| | | | | Problem: Compiler warning for not using value in Lua. Solution: Add "(void)".
* patch 8.2.0775: not easy to call a Vim function from Luav8.2.0775Bram Moolenaar2020-05-171-2/+75
| | | | | Problem: Not easy to call a Vim function from Lua. Solution: Add vim.call() and vim.fn(). (Prabir Shrestha, closes #6063)
* patch 8.2.0479: unloading shared libraries on exit has no purposev8.2.0479Bram Moolenaar2020-03-291-13/+0
| | | | | Problem: Unloading shared libraries on exit has no purpose. Solution: Do not unload shared libraries on exit.
* patch 8.2.0244: compiler warning in Lua interfacev8.2.0244Bram Moolenaar2020-02-111-2/+2
| | | | | Problem: Compiler warning in Lua interface. Solution: Add type cast. (Ken Takata, closes #5621)
* patch 8.2.0149: maintaining a Vim9 branch separately is more workv8.2.0149Bram Moolenaar2020-01-261-2/+1
| | | | | Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.
* patch 8.2.0111: VAR_SPECIAL is also used for booleansv8.2.0111Bram Moolenaar2020-01-111-1/+2
| | | | | Problem: VAR_SPECIAL is also used for booleans. Solution: Add VAR_BOOL for better type checking.
* patch 8.1.2387: using old C style commentsv8.1.2387Bram Moolenaar2019-12-041-122/+130
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2179: pressing "q" at the more prompt doesn't stop Python outputv8.1.2179Bram Moolenaar2019-10-191-1/+2
| | | | | | | 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.
* patch 8.1.1583: set_ref_in_list() only sets ref in itemsv8.1.1583Bram Moolenaar2019-06-231-15/+3
| | | | | Problem: Set_ref_in_list() only sets ref in items. Solution: Rename to set_ref_in_list_items() to avoid confusion.
* patch 8.1.1054: not checking return value of ga_grow()v8.1.1054Bram Moolenaar2019-03-261-6/+6
| | | | | Problem: Not checking return value of ga_grow(). (Coverity) Solution: Only append when ga_grow() returns OK.
* patch 8.1.1043: Lua interface does not support Blobv8.1.1043Bram Moolenaar2019-03-231-12/+183
| | | | | Problem: Lua interface does not support Blob. Solution: Add support to Blob. (Ozaki Kiichi, closes #4151)
* patch 8.1.1019: Lua: may garbage collect function reference in usev8.1.1019Bram Moolenaar2019-03-191-64/+80
| | | | | | 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)
* patch 8.1.1010: Lua interface leaks memoryv8.1.1010Bram Moolenaar2019-03-161-6/+3
| | | | | Problem: Lua interface leaks memory. Solution: Clear typeval after copying it.
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-1/+1
| | | | | | | 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.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-5/+5
| | | | | | | | 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.0672: the Lua interface doesn't know about v:nullv8.1.0672Bram Moolenaar2019-01-011-0/+4
| | | | | Problem: The Lua interface doesn't know about v:null. Solution: Add Lua support for v:null. (Uji, closes #3744)
* patch 8.1.0305: missing support for Lua 5.4 32 bits on Unixv8.1.0305Bram Moolenaar2018-08-211-1/+13
| | | | | Problem: Missing support for Lua 5.4 32 bits on Unix. Solution: Define lua_newuserdatauv. (Kazunobu Kuriyama)
* patch 8.1.0212: preferred cursor column not set in interfacesv8.1.0212Bram Moolenaar2018-07-251-0/+1
| | | | | | Problem: Preferred cursor column not set in interfaces. Solution: Set w_set_curswant when setting the cursor. (David Hotham, closes #3060)
* patch 8.1.0183: Lua API changed, breaking the buildv8.1.0183Bram Moolenaar2018-07-141-5/+19
| | | | | | Problem: Lua API changed, breaking the build. Solution: Adjust prototype of lua_rawgeti(). (Ken Takata, closes #3157, closes #3144)
* patch 8.1.0180: static analysis errors in Lua interfacev8.1.0180Bram Moolenaar2018-07-131-15/+32
| | | | | Problem: Static analysis errors in Lua interface. (Coverity) Solution: Check for NULL pointers.
* patch 8.1.0164: luaeval('vim.buffer().name') returns an errorv8.1.0164Bram Moolenaar2018-07-071-2/+4
| | | | | Problem: luaeval('vim.buffer().name') returns an error. Solution: Return an empty string. (Dominique Pelle, closes #3167)
* patch 8.1.0134: Lua interface does not support funcrefv8.1.0134Bram Moolenaar2018-07-011-27/+238
| | | | | Problem: Lua interface does not support funcref. Solution: Add funcref support. (Luis Carvalho)
* patch 8.0.1136: W_WIDTH() is always the samev8.0.1136Bram Moolenaar2017-09-221-1/+1
| | | | | Problem: W_WIDTH() is always the same. Solution: Expand the macro.
* patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118Bram Moolenaar2017-09-161-4/+0
| | | | | | 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.
* patch 8.0.0268: may get ml_get error when :luado deletes linesv8.0.0268Bram Moolenaar2017-01-291-0/+9
| | | | | | 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.
* patch 7.4.2285v7.4.2285Bram Moolenaar2016-08-281-2/+3
| | | | | Problem: Generated files are outdated. Solution: Generate the files. Avoid errors when generating prototypes.