1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-09-11 17:15:34 +03:00
vimr/NvimView
Shane Smith b52c45baff Fix error "E1502: Lua failed to grow stack to 4001"
The `neoVimBuffer` function was updated in #1015 to used a lua script
through `nvimExecLua`. The script returns the dictionary retrieved from
the `getbufinfo` vim functions. The issue is that this can grow very
large, especially the `variables` entry, and can cause the lua stack to
grow too big and error.

In the end the `neoVimBuffer` function only needs a small handful of the
entries from `getbufinfo`, and so the lua script has been updated to
return a dictionary with only those entries.

At the same time the `hasDirtyBuffers` function was found to also return
the `getbufinfo` dictionary and was similarly fixed. It was also noticed
that the argument passed into `getbuinfo` here was a vim style
dictionary and not valid lua. This made `hasDirtyBuffers` fail and
caused an issue in `MainWindow.windowShouldClose` where selecting `File
> Close Window` would close the window even when dirty buffers were
present. The proper lua dictionary syntax is now used and fixes this
issues.

Fixes #1044
2024-06-22 22:34:35 -04:00
..
Sources/NvimView Fix error "E1502: Lua failed to grow stack to 4001" 2024-06-22 22:34:35 -04:00
Support Update deps 2024-04-26 14:27:46 +02:00
Tests/NvimViewTests Fix RxNeovimApi example 2023-12-23 20:55:42 +01:00
.gitignore Restructure a bit 2020-12-24 12:15:36 +01:00
Package.swift Update deps 2024-04-26 14:27:46 +02:00
README.md Make NvimView build 2020-08-17 23:28:24 +02:00

NvimView

A description of this package.