Code

list_window: removed property "repaint"
authorMax Kellermann <max@duempel.org>
Thu, 25 Sep 2008 15:42:57 +0000 (17:42 +0200)
committerMax Kellermann <max@duempel.org>
Thu, 25 Sep 2008 15:42:57 +0000 (17:42 +0200)
The property "repaint" is never read, since all callers repaint the
list window on demand.

src/list_window.c
src/list_window.h
src/screen_utils.c

index e69f6ac04ee3d17885434b062fd83f747ae7aff3..82df1350b57086df8eb5b6ae949c6e003b41315e 100644 (file)
@@ -92,8 +92,6 @@ list_window_center(struct list_window *lw, unsigned rows, unsigned n)
                else
                        lw->start = 0;
        }
-
-       lw->repaint = 1;
 }
 
 void
@@ -303,7 +301,6 @@ list_window_cmd(struct list_window *lw, unsigned rows, command_t cmd)
                return 0;
        }
 
-       lw->repaint  = 1;
        return 1;
 }
 
@@ -353,7 +350,6 @@ list_window_scroll_cmd(struct list_window *lw, unsigned rows, command_t cmd)
                return 0;
        }
 
-       lw->repaint = 1;
        return 1;
 }
 
index 9a348a26ab2db53050b4e51741e817c6e89b9b9f..c85bc750f743687aa7d93c02f9f26ffc84d45f8c 100644 (file)
@@ -22,7 +22,6 @@ typedef struct list_window {
        unsigned start;
        unsigned selected;
        unsigned xoffset;
-       int repaint;
        int flags;
 } list_window_t;
 
index 6ee1eba68fbf392de6ea5b8c0d7d54697545cde2..6029596bdc47ea43488f93f08c48b912dd86f3f0 100644 (file)
@@ -198,9 +198,7 @@ screen_find(screen_t *screen,
                                                  screen->findbuf,
                                                  options.find_wrap);
 
-               if (retval == 0)
-                       lw->repaint  = 1;
-               else {
+               if (retval != 0) {
                        screen_status_printf(_("Unable to find \'%s\'"), screen->findbuf);
                        screen_bell();
                }