summaryrefslogtreecommitdiff
path: root/sys/src/cmd/acme/exec.c
diff options
context:
space:
mode:
authorIgor Böhm <igor@9lab.org>2022-01-04 19:11:07 +0000
committerIgor Böhm <igor@9lab.org>2022-01-04 19:11:07 +0000
commit47b7dc5ccd77bc247ab15cfab3a7a8f955771c70 (patch)
tree659c75b40c289523ac430ac90fa579749cab520d /sys/src/cmd/acme/exec.c
parent369cba5f938d3f804210b6e09d36c6f7ecb017fa (diff)
acme: fix window and scrollbar display glitches at bottom fringe of column
The following patch fixes acme display glitches at the bottom fringe of columns when adding/moving/resizing windows. Here an example of an easy to reproduce case: • https://invidio.xamh.de/watch?v=iLekQrxycaM …opening acme and resizing a column to the right is all that is needed. The functions winresize(…) and textresize(…) are extended with an additional parameter `fillfringe` to indicate if a window/tag shall fill a potential fringe area that would otherwise remain white. The changes have been inspired by the approach taken in plan9port acme.
Diffstat (limited to 'sys/src/cmd/acme/exec.c')
-rw-r--r--sys/src/cmd/acme/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/acme/exec.c b/sys/src/cmd/acme/exec.c
index 71070a1b6..b2bc06338 100644
--- a/sys/src/cmd/acme/exec.c
+++ b/sys/src/cmd/acme/exec.c
@@ -1217,7 +1217,7 @@ tab(Text *et, Text*, Text *argt, int, int, Rune *arg, int narg)
if(tab > 0){
if(w->body.tabstop != tab){
w->body.tabstop = tab;
- winresize(w, w->r, 1);
+ winresize(w, w->r, FALSE, TRUE);
}
}else
warning(nil, "%.*S: Tab %d\n", w->body.file->nname, w->body.file->name, w->body.tabstop);