From 5b332bfa256a19426e91b48a7df0fb13ed93830a Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sat, 19 Feb 2011 13:59:44 +0000 Subject: [PATCH] * Do not allow script to write more than 24 chars to the statusline * Clear the statusline when a script is finished running. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1731 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/factory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/factory.c b/src/factory.c index 7bb7f565..5a50f759 100644 --- a/src/factory.c +++ b/src/factory.c @@ -1175,7 +1175,8 @@ int L_StatusMessage(lua_State* L) LUA_ARG_LIMIT(1,"statusmessage"); LUA_ARG_STRING(1, "statusmessage", msg); - Print_in_menu(msg,0); + if(strlen(msg)<=24) + Print_in_menu(msg,0); return 0; } @@ -1507,6 +1508,7 @@ void Run_script(const char *script_subdirectory, const char *script_filename) Brush_backup=NULL; Update_colors_during_script(); End_of_modification(); + Print_in_menu(" ",0); lua_close(L);