]> git.deb.at Git - pkg/abook.git/commitdiff
- possibly improve error reporting when tabs are too wide to display
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Wed, 26 Oct 2005 15:28:57 +0000 (15:28 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Wed, 26 Oct 2005 15:28:57 +0000 (15:28 +0000)
edit.c

diff --git a/edit.c b/edit.c
index f5e05845e8022e1abc94f20e4845815a5aa0c8d9..538eb422d18b1b80b6ad075cafab9045a8454a28 100644 (file)
--- a/edit.c
+++ b/edit.c
@@ -51,10 +51,7 @@ editor_tab(const int tab)
                int width = strwidth(tab_name) + 5;
 
                if(x_pos + width + 1 > EDITW_COLS) {
-                       statusline_msg(_("Tab name too wide for screen"));
-                       /* Disabling this field */
-                       /* TODO should be recomputed on window resize */
-                       views_count--;
+                       statusline_addstr(_("Tab name too wide for screen"));
                        break;
                }