From: Daniel Carl <danielcarl@gmx.de>
Date: Sat, 22 Apr 2017 20:45:01 +0000 (+0200)
Subject: Remove FEATURE_HISTORY_INDICATOR.
X-Git-Url: https://git.owens.tech/editable-focus.html/editable-focus.html/git?a=commitdiff_plain;h=f2a1f136a27cf8f1c177766ee4a45b710b8a70d1;p=vimb.git

Remove FEATURE_HISTORY_INDICATOR.

This does not bring any real benefit to make allow to avoid this but
makes the code hard to maintain.
---

diff --git a/src/main.c b/src/main.c
index 0c8b6da..0b35304 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1363,13 +1363,7 @@ static void update_title(Client *c)
  */
 static void update_urlbar(Client *c)
 {
-#if !defined(FEATURE_HISTORY_INDICATOR)
-    /* if only the uri is shown - write it like it is on the label */
-    gtk_label_set_text(GTK_LABEL(c->statusbar.left), c->state.uri);
-#else
     GString *str = g_string_new(c->state.uri);
-
-#ifdef FEATURE_HISTORY_INDICATOR
     gboolean back, fwd;
 
     back = webkit_web_view_can_go_back(c->webview);
@@ -1379,11 +1373,9 @@ static void update_urlbar(Client *c)
     if (back || fwd) {
         g_string_append_printf(str, " [%s]", back ? (fwd ? "-+" : "-") : "+");
     }
-#endif /* FEATURE_HISTORY_INDICATOR */
 
     gtk_label_set_text(GTK_LABEL(c->statusbar.left), str->str);
     g_string_free(str, TRUE);
-#endif /* !defined(FEATURE_HISTORY_INDICATOR) */
 }
 
 #ifdef FREE_ON_QUIT