Hi!

In the current master the error messages aren't printed if there where called
unknown commands from inputbox. This patch removes the focus from inputbox
after a command was called to allow the echo function to print the messages to
the inputbox.
I haven't tested this patch much, so I hope someone else can have a look at
it.

Daniel
From 73a9469a4c8b053fec3325142341e937d6cc2c10 Mon Sep 17 00:00:00 2001
From: Daniel Carl <[email protected]>
Date: Sat, 8 Sep 2012 15:10:21 +0200
Subject: [PATCH 1/1] Fixed none printed messages if inputbox where already
 focused.

This patch removes the focus from the inputbox is a command is called from it.
This allows to print the success or error messages to the inputbox.
---
 main.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/main.c b/main.c
index b3407ba..cb84ee1 100644
--- a/main.c
+++ b/main.c
@@ -514,6 +514,11 @@ inputbox_activate_cb(GtkEntry *entry, gpointer user_data) {
     if (length == 0)
         return;
     text = (char*)gtk_entry_get_text(entry);
+
+    /* move focus from inputbox to print potential messages that could not be
+     * printed as long as the inputbox is focused */
+    gtk_widget_grab_focus(GTK_WIDGET(webview));
+
     if (length > 1 && text[0] == ':') {
         success = process_line((text + 1));
     } else if (length > 1 && ((forward = text[0] == '/') || text[0] == '?')) {
-- 
1.7.9.5

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Vimprobable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vimprobable-users

Reply via email to