would LYclrtoeol() work, rather than this explicit loop on LYaddch()?

(the loop limit is a problem, because it is not necessarily directly
related to the amount which can be cleared on the screen)

On Mon, Oct 15, 2001 at 01:05:14AM +0900, Hataguchi Takeshi wrote:
> diff -bru orig/lynx2-8-5/src/LYStrings.c lynx2-8-5/src/LYStrings.c
> --- orig/lynx2-8-5/src/LYStrings.c    Thu Aug 16 07:09:52 2001
> +++ lynx2-8-5/src/LYStrings.c Sun Oct 14 21:48:24 2001
> @@ -3475,11 +3475,22 @@
>                   if (i < (nrdisplayed - 1))
>                       buffer[1] = str[++i];
>  #else /* SUPPORT_MULTIBYTE_EDIT */
> +#ifndef USE_SLANG
> +                 int ii, xx,yy;
> +#endif /* USE_SLANG */
>                   if (i < (nrdisplayed - 1)) {
>                       buffer[1] = str[++i];
>                       end_multi = 1;
>                   } else
>                       end_multi = 0;
> +#ifndef USE_SLANG
> +                 LYGetYX(yy, xx);
> +                 for (ii=0; ii<strlen(buffer); ii++) {
> +                     LYaddch(' ');
> +                 }
> +                 LYrefresh();
> +                 LYmove(yy, xx);
> +#endif /* USE_SLANG */
>  #endif /* SUPPORT_MULTIBYTE_EDIT */
>                   LYaddstr(buffer);
>                   buffer[1] = '\0';
> @@ -3542,12 +3553,6 @@
>      }
>  
>      LYmove(edit->sy, edit->sx + Pos - DspStart);
> -#ifdef SUPPORT_MULTIBYTE_EDIT
> -#if (!USE_SLANG && !defined(USE_MULTIBYTE_CURSES))
> -    if (HTCJK != NOCJK)
> -     lynx_force_repaint();
> -#endif /* !USE_SLANG && !defined(USE_MULTIBYTE_CURSES) */
> -#endif /* SUPPORT_MULTIBYTE_EDIT */
>  
>  #ifdef USE_COLOR_STYLE
>      if (estyle != NOSTYLE)
> 
> ; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

-- 
Thomas E. Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to