aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-02-15 01:07:49 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-02-15 01:07:49 -0500
commit86ef9ed4b1b74970c85c0fd319ba0dc8eb0b2b8d (patch)
treebd1de960b8b2a93d61004e3a8dbdf6b0854ee52d /src
parent66c019be32ef2f66f73821f93083760018caa2a2 (diff)
downloadtextadept-86ef9ed4b1b74970c85c0fd319ba0dc8eb0b2b8d.tar.gz
textadept-86ef9ed4b1b74970c85c0fd319ba0dc8eb0b2b8d.zip
PM browser cursors are saved and restored when switching between browsers.
Diffstat (limited to 'src')
-rw-r--r--src/lua_interface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lua_interface.c b/src/lua_interface.c
index 7a98451b..97b59c14 100644
--- a/src/lua_interface.c
+++ b/src/lua_interface.c
@@ -810,8 +810,9 @@ void l_pm_view_fill(GtkTreeIter *initial_iter) {
lua_pushboolean(lua, initial_iter != NULL);
l_call_function(2, 1, true);
if (!lua_istable(lua, -1)) {
+ if (!lua_isnil(lua, -1)) warn("pm.get_contents_for: return not a table.");
lua_pop(lua, 1); // non-table return
- return warn("pm.get_contents_for: return not a table.");
+ return;
}
GtkTreeIter iter, child;
@@ -841,6 +842,8 @@ void l_pm_view_fill(GtkTreeIter *initial_iter) {
lua_pop(lua, 1); // value
}
lua_pop(lua, 1); // returned table
+
+ l_handle_event("pm_view_filled");
}
/**