aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/textadept.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c
index 4bf224cc..a1ee9e5c 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -2114,7 +2114,7 @@ static int lview_property(lua_State *L) {
#elif CURSES
Pane *p = pane_get_parent(pane, view);
if (!newindex)
- p ? lua_pushinteger(L, parent->split_size) : lua_pushnil(L);
+ p ? lua_pushinteger(L, p->split_size) : lua_pushnil(L);
else if (p)
p->split_size = size, pane_resize(p, p->rows, p->cols, p->y, p->x);
#endif