Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Vim
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Someone-Else
Vim
Commits
2bd6a1b5
Commit
2bd6a1b5
authored
14 years ago
by
Bram Moolenaar
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Lua interface tried to load the library when closing a buffer or window.
parent
0be992e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/if_lua.c
+8
-2
8 additions, 2 deletions
src/if_lua.c
with
8 additions
and
2 deletions
src/if_lua.c
+
8
−
2
View file @
2bd6a1b5
...
...
@@ -1122,6 +1122,12 @@ luaV_setrange(lua_State *L, int line1, int line2)
static
lua_State
*
L
=
NULL
;
static
int
lua_is_open
(
void
)
{
return
L
!=
NULL
;
}
static
int
lua_init
(
void
)
{
...
...
@@ -1240,7 +1246,7 @@ ex_luafile(exarg_T *eap)
void
lua_buffer_free
(
buf_T
*
buf
)
{
if
(
lua_i
nit
()
==
FAIL
)
return
;
if
(
!
lua_i
s_open
()
)
return
;
luaV_getfield
(
L
,
LUAVIM_FREE
);
lua_pushlightuserdata
(
L
,
(
void
*
)
buf
);
lua_call
(
L
,
1
,
0
);
...
...
@@ -1250,7 +1256,7 @@ lua_buffer_free(buf_T *buf)
void
lua_window_free
(
win_T
*
win
)
{
if
(
lua_i
nit
()
==
FAIL
)
return
;
if
(
!
lua_i
s_open
()
)
return
;
luaV_getfield
(
L
,
LUAVIM_FREE
);
lua_pushlightuserdata
(
L
,
(
void
*
)
win
);
lua_call
(
L
,
1
,
0
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment