TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Cursor PASTE BUFFER command

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
nya



Joined: 25 Jun 2012
Posts: 39

PostPosted: Sat Mar 02, 2013 9:39 am    Post subject: Cursor PASTE BUFFER command Reply with quote

Ctrl-Y and the associated #cursor {PASTE BUFFER} commands seem slightly bugged. While they do, for the most part, work, they deceptively don't update the cursor position.

For example, if you used it to paste "foo", and then typed "bar", "bar" would overwrite "foo" in the input line, while the actual text input would be "foobar".

A quick hack that seems to fix it (at least well enough for my purposes) is just increasing gtd->input_pos the same way gtd->input_cur and gtd->input_len are increased, in cursors.c's definition for cursor_paste_buffer. However, other similar cursor commands seem to account for UTF8 characters, so an actual legitimate solution might have to be a bit more complicated.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Sat Mar 02, 2013 11:41 am    Post subject: Reply with quote

Added to the todo list. Smile
Back to top
View user's profile Send private message Send e-mail
nya



Joined: 25 Jun 2012
Posts: 39

PostPosted: Sat Mar 02, 2013 7:54 pm    Post subject: Reply with quote

Thanks. Big Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group