On 2023-02-20 19:05, adr wrote:
[snip]
One thing I can't understand is why the text window
is always redrawn completely when the tag line is edited. I'll take a look
in the future.

AFAIR from when I looked into it, this behavior was introduced in

commit ba7c22f781dafd30d0b97179c941476639022285
Author: mveety <mve...@gmail.com>
Date:   Wed Aug 28 23:01:23 2013 -0400

Added the p9p acme patch the allows multiline tags (thanks rsc and lf94).

I think the redraw happens because when you add a character to the tag you may need to wrap to a new line. As a stopgap for myself, I've just removed the call to winresize from winsettag1. In principle one should be able to figure out the width of the text in the tag and how many lines are needed, and redraw only if that number changes after a character is typed, but I wasn't able to figure out where to do this in the code.


------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Tc1d9d9ca3a94e285-Ma59d9fb2950eba76653a7a5c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to