about summary refs log tree commit diff stats
path: root/src/teliva.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-01-25 23:25:05 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-01-25 23:25:05 -0800
commitcbe85a18c7e433e1d937eba7e994329e4d81e9cc (patch)
tree3c4354be4c2360da6f9fa7d703634a9ae744dddb /src/teliva.c
parent32d86bfc7f375a288a67549e95faea788da44d04 (diff)
downloadteliva-cbe85a18c7e433e1d937eba7e994329e4d81e9cc.tar.gz
rename the custom big picture view to doc:main
Diffstat (limited to 'src/teliva.c')
-rw-r--r--src/teliva.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/teliva.c b/src/teliva.c
index b588829..8cb0a62 100644
--- a/src/teliva.c
+++ b/src/teliva.c
@@ -626,7 +626,8 @@ static int look_up_definition (lua_State* L, const char* name);
 extern int editProse(lua_State* L, char* filename);
 void big_picture_view(lua_State* L) {
   int oldtop = lua_gettop(L);
-  if (!look_up_definition(L, "doc:bp")) {
+  if (!look_up_definition(L, "doc:main")) {
+    lua_settop(L, oldtop);
     default_big_picture_view(L);
   } else {
     FILE* out = fopen("teliva_big_picture", "w");