[haiku-bugs] Re: [Haiku] #5775: Command line editing off by one

  • From: "andreasf" <trac@xxxxxxxxxxxx>
  • Date: Thu, 22 Apr 2010 10:51:49 -0000

#5775: Command line editing off by one
-----------------------------------+----------------------------------------
 Reporter:  andreasf               |       Owner:  jackburton    
     Type:  bug                    |      Status:  new           
 Priority:  normal                 |   Milestone:  R1            
Component:  Applications/Terminal  |     Version:  R1/Development
 Keywords:                         |   Blockedby:                
 Platform:  x86                    |    Blocking:                
-----------------------------------+----------------------------------------

Comment(by andreasf):

 Here's a reproducible test case with multi-byte character:

 Type:
 {{{
 git config --global user.email "Andreas Färber"
 }}}
 After hitting enter, use the up key to get this line again and use the
 backspace key to remove everything after the dot. Make it read:
 {{{
 git config --global user.email myemail@xxxxxxxxxxx
 }}}
 and press enter. Instead of the above it will have executed:
 {{{
 git config --global user.nemail myemail@xxxxxxxxxxx
 }}}
 Verifiable by `git config -l` or by looking at {{{/boot/home/.gitconfig}}}
 file.

 So it seems the backspace key removes one byte rather than one character.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5775#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: