From 25b785dfc7f125b66a6ed1fc7b661a2435dc7bf0 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 5 Feb 2009 17:21:52 -0500 Subject: Fixed a bug and added enhancements to Find in Files. Double-clicking a search result will open the file in the previous view (if it exists) rather than clobbering the current one. Also added the find text to the output. --- src/lua_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lua_interface.c b/src/lua_interface.c index 677e9709..2d0b30e0 100644 --- a/src/lua_interface.c +++ b/src/lua_interface.c @@ -1412,7 +1412,7 @@ static int l_cf_buffer_text_range(lua_State *lua) { static int l_cf_view_focus(lua_State *lua) { GtkWidget *editor = l_checkview(lua, 1); - gtk_widget_grab_focus(editor); + if (GTK_IS_WIDGET(editor)) gtk_widget_grab_focus(editor); return 0; } -- cgit v1.2.3