[2759] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

Re: [PATCH] Punt the ~s at the end of a popless text

daemon@ATHENA.MIT.EDU (Nelson Elhage)
Sun Nov 7 19:17:10 2010

From: Nelson Elhage <nelhage@MIT.EDU>
To: David Benjamin <davidben@mit.edu>, barnowl-dev@mit.edu
In-Reply-To: <1289159965-19418-1-git-send-email-davidben@mit.edu>
Date: Sun, 07 Nov 2010 19:17:07 -0500

lgtm

On Sun,  7 Nov 2010 14:59:25 -0500, David Benjamin <davidben@MIT.EDU> wrote:
> They seem to confuse slightly more people than not, and no one seems to
> care enough to justify adding yet another configuration variable.
> ---
>  viewwin.c |   10 ----------
>  1 files changed, 0 insertions(+), 10 deletions(-)
> 
> diff --git a/viewwin.c b/viewwin.c
> index 024dac8..a2b2b7e 100644
> --- a/viewwin.c
> +++ b/viewwin.c
> @@ -2,7 +2,6 @@
>  #include "owl.h"
>  
>  #define BOTTOM_OFFSET 1
> -#define EMPTY_INDICATOR "~"
>  
>  static void owl_viewwin_redraw_content(owl_window *w, WINDOW *curswin, void *user_data);
>  static void owl_viewwin_redraw_status(owl_window *w, WINDOW *curswin, void *user_data);
> @@ -96,7 +95,6 @@ static void owl_viewwin_redraw_content(owl_window *w, WINDOW *curswin, void *use
>    owl_fmtext fm1, fm2;
>    owl_viewwin *v = user_data;
>    int winlines, wincols;
> -  int y;
>  
>    owl_window_get_position(w, &winlines, &wincols, 0, 0);
>  
> @@ -111,14 +109,6 @@ static void owl_viewwin_redraw_content(owl_window *w, WINDOW *curswin, void *use
>  
>    owl_fmtext_curs_waddstr(&fm2, curswin);
>  
> -  /* Fill remaining lines with tildes. */
> -  y = v->textlines - v->topline;
> -  wmove(curswin, y, 0);
> -  for (; y < winlines; y++) {
> -    waddstr(curswin, EMPTY_INDICATOR);
> -    waddstr(curswin, "\n");
> -  }
> -
>    owl_fmtext_cleanup(&fm1);
>    owl_fmtext_cleanup(&fm2);
>  }
> -- 
> 1.7.3.1.g716de
> 
> 

home help back first fref pref prev next nref lref last post