]> Skullheadx's Git Forge - surf.git/commitdiff
Fix pasteuri()
authorQuentin Rameau <quinq@fifth.space>
Sun, 22 Nov 2015 12:15:39 +0000 (13:15 +0100)
committerQuentin Rameau <quinq@fifth.space>
Sun, 22 Nov 2015 12:15:39 +0000 (13:15 +0100)
The uri check had been inverted.

surf.c

diff --git a/surf.c b/surf.c
index 5043d33c63da44d6c47c356ae87df20af8a518a0..5c9520f3b88f4ca47750c98485170a94f1adf9ed 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -1220,7 +1220,7 @@ void
 pasteuri(GtkClipboard *clipboard, const char *text, gpointer d)
 {
        Arg a = {.v = text };
-       if (!text)
+       if (text)
                loaduri((Client *) d, &a);
 }