aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-02-05 17:21:52 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-02-05 17:21:52 -0500
commit25b785dfc7f125b66a6ed1fc7b661a2435dc7bf0 (patch)
tree97bc846795271bffdecf9acca3ca14d2a9fb0a3c /src
parent31b6f1d5a76c9a37da074011866fc6d68b0413d6 (diff)
downloadtextadept-25b785dfc7f125b66a6ed1fc7b661a2435dc7bf0.tar.gz
textadept-25b785dfc7f125b66a6ed1fc7b661a2435dc7bf0.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/lua_interface.c2
1 files changed, 1 insertions, 1 deletions
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;
}