Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh-3.0.6-pre-2: clear list



Sven Wischnowsky writes:
> --- Src/zle_refresh.c.old	Tue May  4 17:06:35 1999
> +++ Src/zle_refresh.c	Tue May  4 17:26:22 1999
> @@ -61,6 +61,16 @@
>  static unsigned pmpt_attr = 0,	/* text attributes after displaying pro
> mpt  */
>      rpmpt_attr = 0;		/* text attributes after displaying rprompt */
>  
> +/* Non-zero if a completion list was displayed. */
> +
> +/**/
> +int listshown;
> +
> +/* Non-zero if refresh() should clear the list below the prompt. */
> +
> +/**/
> +int clearlist;
> +
>  /**/
>  void
>  resetvideo(void)

I don't think this is the right way to do this for 3.0.6.  These
variables don't get prefixed with "extern" in the .pro file, and I
believe that this will fail on a system whose linker doesn't merge
duplicate data definitions.  I moved these lines to globals.h (sans
the /**/ tags) and prefixed them with "EXTERN".

..wayne..



Messages sorted by: Reverse Date, Date, Thread, Author