summaryrefslogtreecommitdiffstats
path: root/src/if_lua.c
AgeCommit message (Collapse)Author
2024-01-29patch 9.1.0062: Internal error when :luado/perldo/pydo etc delete linesv9.1.0062zeertzjq
Problem: Internal error when :luado/perldo/pydo etc delete lines Solution: Test that the line is still valid line number (zeertzjq) closes: #13931 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-11patch 9.0.2013: confusing ifdefs in if_<lang>.cv9.0.2014Ken Takata
Problem: confusing ifdefs in if_<lang>.c Solution: refactor ifndefs to #ifdefs if_x: Avoid using #ifndef - #else - #endif Using #ifndef - #else - #endif is sometimes confusing. Use #ifdef - #else - #endif instead. closes: #13310 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ken Takata <kentkt@csc.jp>
2023-09-24patch 9.0.1933: Can change the type of a v: variable using if_luav9.0.1933zeertzjq
Problem: Can change the type of a v: variable using if_lua. Solution: Add additional handling of v: variables like :let. closes: #13161 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-08-16patch 9.0.1721: Build failure on Windows with dynamic luav9.0.1721zeertzjq
Problem: Build failure on Windows with dynamic lua (after 9.0.1719) Solution: move definition further down in if_lua closes: #12811 closes: #12814 closes: #12818 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-08-15patch 9.0.1719: if_lua: crash for for Lua functions invoked via Vim callbacksv9.0.1719Jesse Pavel
Problem: if_lua: crash for Lua functions invoked via Vim callbacks Solution: Use Lua registry rather than upvalues for udata cache closes: #12785 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Jesse Pavel <jpavel@alum.mit.edu>
2023-02-21patch 9.0.1336: functions without arguments are not always declared properlyv9.0.1336Yegappan Lakshmanan
Problem: Functions without arguments are not always declared properly. Solution: Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031)
2023-02-18patch 9.0.1320: checking the type of a null object causes a crashv9.0.1320Bram Moolenaar
Problem: Checking the type of a null object causes a crash. Solution: Don't try to get the class of a null object. (closes #12005) Handle error from calling a user function better.
2023-01-22patch 9.0.1234: the code style has to be checked manuallyv9.0.1234Bram Moolenaar
Problem: The code style has to be checked manually. Solution: Add basic code style checks in a test. Fix or avoid uncovered problems.
2023-01-12patch 9.0.1183: code is indented more than necessaryv9.0.1183Yegappan Lakshmanan
Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11805)
2022-11-25patch 9.0.0949: crash when unletting a variable while listing variablesv9.0.0949Bram Moolenaar
Problem: Crash when unletting a variable while listing variables. Solution: Disallow changing a hashtable while going over the entries. (closes #11435)
2022-09-17patch 9.0.0491: no good reason to build without the float featurev9.0.0491Bram Moolenaar
Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
2022-08-14patch 9.0.0206: redraw flags are not named specificallyv9.0.0206Bram Moolenaar
Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
2022-08-08patch 9.0.0170: various minor code formatting issuesv9.0.0170Bram Moolenaar
Problem: Various minor code formatting issues. Solution: Improve code formatting.
2022-05-09patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar
Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
2022-01-01patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-10-04patch 8.2.3474: some places use "Vimscript" instead of "Vim script"v8.2.3474h-east
Problem: Some places use "Vimscript" instead of "Vim script". Solution: Consistently use "Vim script". (Hirohito Higashi, closes #8910)
2021-08-06patch 8.2.3300: Lua: can only execute on Vim command at a timev8.2.3300Yegappan Lakshmanan
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-05patch 8.2.3294: Lua: memory leak when adding dict item failsv8.2.3294Bram Moolenaar
Problem: Lua: memory leak when adding dict item fails. Solution: Free the typval and the dict item.
2021-08-05patch 8.2.3291: Coverity warns for not checking return valuev8.2.3291Bram Moolenaar
Problem: Coverity warns for not checking return value. Solution: If dict_add() fails give an error message.
2021-08-04patch 8.2.3288: cannot easily access namespace dictionaries from Luav8.2.3288Yegappan Lakshmanan
Problem: Cannot easily access namespace dictionaries from Lua. Solution: Add vim.g, vim.b, etc. (Yegappan Lakshmanan, closes #8693, from NeoVim)
2021-07-29patch 8.2.3244: Lua 5.3 print() with a long string crashesv8.2.3244Yegappan Lakshmanan
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-28patch 8.2.3240: Lua print() does not work properlyv8.2.3240Bram Moolenaar
Problem: Lua print() does not work properly. Solution: Put back lua_pop().
2021-07-28patch 8.2.3234: crash when printing long string with Luav8.2.3234Bram Moolenaar
Problem: Crash when printing long string with Lua. Solution: Remove lua_pop(). (Martin Tournoij, closes #8648)
2021-07-24patch 8.2.3208: dynamic library load error does not mention why it failedv8.2.3208Martin Tournoij
Problem: Dynamic library load error does not mention why it failed. Solution: Add the error message. (Martin Tournoij, closes #8621)
2021-04-07patch 8.2.2733: detecting Lua version is not reliablev8.2.2733Bram Moolenaar
Problem: Detecting Lua version is not reliable. Solution: Add "vim.lua_version". (Ozaki Kiichi, closes #8080)
2021-03-08patch 8.2.2578: Lua cannot handle a passed in lambdav8.2.2578Bram Moolenaar
Problem: Lua cannot handle a passed in lambda. Solution: Handle VAR_PARTIAL. (Prabir Shrestha, closes #7937, closes #7936)
2020-10-26patch 8.2.1908: Lua is initialized even when not usedv8.2.1908Bram Moolenaar
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-07-18patch 8.2.1234: Lua build problem with old compilerv8.2.1234Bram Moolenaar
Problem: Lua build problem with old compiler. Solution: Move declarations to start of the block. (Taro Muraoka, closes #6477)
2020-07-14patch 8.2.1212: cannot build with Lua 5.4v8.2.1212Bram Moolenaar
Problem: Cannot build with Lua 5.4. Solution: Use luaL_typeerror instead defining it. (closes #6454)
2020-07-02patch 8.2.1117: Coverity warns for unsing unitialized fieldv8.2.1117Bram Moolenaar
Problem: Coverity warns for unsing unitialized field. Solution: Initialize v_lock.
2020-07-01patch 8.2.1105: insufficient test coverage for Luav8.2.1105Bram Moolenaar
Problem: Insufficient test coverage for Lua. Solution: Add tests. (Yegappan Lakshmanan, closes #6368) Fix uncovered memory leak. Avoid unnecessary copy/free.
2020-06-28patch 8.2.1081: Lua: cannot use table.insert() and table.remove()v8.2.1081Bram Moolenaar
Problem: Lua: cannot use table.insert() and table.remove(). Solution: Add the list functions. (Prabir Shrestha, closes #6353)
2020-06-27patch 8.2.1066: Lua arrays are zero basedv8.2.1066Bram Moolenaar
Problem: Lua arrays are zero based. Solution: Make Lua arrays one based. (Prabir Shrestha, closes #6347) Note: this is not backwards compatible.
2020-06-25patch 8.2.1057: cannot build with dynamic Luav8.2.1057Bram Moolenaar
Problem: Cannot build with dynamic Lua. Solution: Add dll variables.
2020-06-25patch 8.2.1054: not so easy to pass a lua function to Vimv8.2.1054Bram Moolenaar
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-05-31patch 8.2.0858: not easy to require Lua modulesv8.2.0858Bram Moolenaar
Problem: Not easy to require Lua modules. Solution: Improve use of Lua path. (Prabir Shrestha, closes #6098)
2020-05-30patch 8.2.0853: ml_delete() often called with FALSE argumentv8.2.0853Bram Moolenaar
Problem: ml_delete() often called with FALSE argument. Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
2020-05-17patch 8.2.0782: cannot build with Lua on MS-Windowsv8.2.0782Bram Moolenaar
Problem: Cannot build with Lua on MS-Windows. Solution: Add DLL symbol for luaL_Loadstring. (Ken Takata)
2020-05-17patch 8.2.0781: compiler warning for not using value in Luav8.2.0781Bram Moolenaar
Problem: Compiler warning for not using value in Lua. Solution: Add "(void)".
2020-05-17patch 8.2.0775: not easy to call a Vim function from Luav8.2.0775Bram Moolenaar
Problem: Not easy to call a Vim function from Lua. Solution: Add vim.call() and vim.fn(). (Prabir Shrestha, closes #6063)
2020-03-29patch 8.2.0479: unloading shared libraries on exit has no purposev8.2.0479Bram Moolenaar
Problem: Unloading shared libraries on exit has no purpose. Solution: Do not unload shared libraries on exit.
2020-02-11patch 8.2.0244: compiler warning in Lua interfacev8.2.0244Bram Moolenaar
Problem: Compiler warning in Lua interface. Solution: Add type cast. (Ken Takata, closes #5621)
2020-01-26patch 8.2.0149: maintaining a Vim9 branch separately is more workv8.2.0149Bram Moolenaar
Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.
2020-01-11patch 8.2.0111: VAR_SPECIAL is also used for booleansv8.2.0111Bram Moolenaar
Problem: VAR_SPECIAL is also used for booleans. Solution: Add VAR_BOOL for better type checking.
2019-12-04patch 8.1.2387: using old C style commentsv8.1.2387Bram Moolenaar
Problem: Using old C style comments. Solution: Use // comments where appropriate.
2019-10-19patch 8.1.2179: pressing "q" at the more prompt doesn't stop Python outputv8.1.2179Bram Moolenaar
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-06-23patch 8.1.1583: set_ref_in_list() only sets ref in itemsv8.1.1583Bram Moolenaar
Problem: Set_ref_in_list() only sets ref in items. Solution: Rename to set_ref_in_list_items() to avoid confusion.
2019-03-26patch 8.1.1054: not checking return value of ga_grow()v8.1.1054Bram Moolenaar
Problem: Not checking return value of ga_grow(). (Coverity) Solution: Only append when ga_grow() returns OK.
2019-03-23patch 8.1.1043: Lua interface does not support Blobv8.1.1043Bram Moolenaar
Problem: Lua interface does not support Blob. Solution: Add support to Blob. (Ozaki Kiichi, closes #4151)
2019-03-19patch 8.1.1019: Lua: may garbage collect function reference in usev8.1.1019Bram Moolenaar
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)