zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: PATCH: Re: Screen refresh problem with completion messages
Date: Tue, 8 May 2001 10:11:29 +0200 (MET DST)	[thread overview]
Message-ID: <200105080811.KAA03599@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <1010507143439.ZM27670@candle.brasslantern.com>

Bart Schaefer wrote:

> On May 7, 12:33pm, Sven Wischnowsky wrote:
> } Subject: Re: Screen refresh problem with completion messages
> }
> } This is yet another manifestation of the first bug in the BUGS file.
> } 
> } At least for the non-complist code, it actually prints all characters
> } and then outputs a CLEAREOL which removes the last character again.
> 
> What about simply emitting space-backspace when the cursor reaches the
> COLUMNS-th character?  That might have some ramifications in zle, but
> it should be completely harmless in complist.

Oh, yes.

Bye
  Sven

Index: Src/Zle/complist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complist.c,v
retrieving revision 1.40
diff -u -r1.40 complist.c
--- Src/Zle/complist.c	2001/03/15 09:55:33	1.40
+++ Src/Zle/complist.c	2001/05/08 08:11:11
@@ -576,6 +576,7 @@
 		    return ask;
 		}
 		col = 0;
+                fputs(" \010", shout);
 	    }
 	}
     }
@@ -895,8 +896,10 @@
 		    continue;
 		}
 		putc(*p, shout);
-		if ((beg = !(cc % columns)) && !stat)
+		if ((beg = !(cc % columns)) && !stat) {
 		    ml++;
+                    fputs(" \010", shout);
+                }
 		if (mscroll && beg && !--mrestlines && (ask = asklistscroll(ml))) {
 		    *stop = 1;
 		    if (stat && n)
Index: Src/Zle/zle_tricky.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_tricky.c,v
retrieving revision 1.24
diff -u -r1.24 zle_tricky.c
--- Src/Zle/zle_tricky.c	2001/02/28 09:12:57	1.24
+++ Src/Zle/zle_tricky.c	2001/05/08 08:11:12
@@ -1917,8 +1917,11 @@
 		l += 1 + (cc / columns);
 		cc = 0;
 	    }
-	    if (dopr)
+	    if (dopr) {
 		putc(*p, shout);
+                if (!(cc % columns))
+                    fputs(" \010", shout);
+            }
 	}
     }
     if (dopr) {

-- 
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


      reply	other threads:[~2001-05-08  8:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-04 16:22 Bart Schaefer
2001-05-07 10:33 ` Sven Wischnowsky
2001-05-07 14:34   ` Bart Schaefer
2001-05-08  8:11     ` Sven Wischnowsky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200105080811.KAA03599@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).