GNU bug report logs -
#78474
31.0.50; Wrong char insertion in rxvt
Previous Next
Full log
Message #47 received at 78474 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Fri, 11 Jul 2025 22:06:25 +0300, Eli Zaretskii <eliz <at> gnu.org> said:
>> From: Robert Pluim <rpluim <at> gmail.com>
>> Cc: Samuel Thibault <samuel.thibault <at> gnu.org>, 78474 <at> debbugs.gnu.org, Eli
>> Zaretskii <eliz <at> gnu.org>, Sebastien.Hinderer <at> inria.fr
>> Date: Fri, 11 Jul 2025 19:32:43 +0200
>>
>> >>>>> On Fri, 11 Jul 2025 17:20:52 +0200, Bastien Guerry <bzg <at> gnu.org> said:
>>
Bastien> Is there anyone working on this?
Bastien> It's beyond my skills, but I'd hate to see this bug closed due to lack
Bastien> of activity/interest. Let me know if I can help somehow.
>>
>> I can take a look at it. Eli, a clue as to where this optimization
>> happens in the redisplay code?
Eli> I mentioned that up-thread: it's in cm.c.
Thanks, Iʼd missed that.
cm.c works out the cost of either
- moving past the destination with tabs then moving left
- moving towards the destination with tabs then moving right
- moving right directly to the destination
According to my instrumentation, emitting the 'move right' command
costs 3 times as much as 'emit tab' or 'move left' here, so itʼs an
optimization that makes sense, especially if the destination is far
away.
So I donʼt think a generic 'make tabs expensive' is a good idea, but I
guess we could add a user option to disable the use of tabs for motion
on ttys.
Robert
--
This bug report was last modified 1 day ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.