[Midnight Commander] #256: Alt+Backspace off-by-one (UTF-8)

Ticket System tickets at midnight-commander.org
Thu Feb 5 22:24:36 UTC 2009


#256: Alt+Backspace off-by-one (UTF-8)
---------------------+------------------------------------------------------
 Reporter:  egmont   |       Owner:         
     Type:  defect   |      Status:  new    
 Priority:  minor    |   Milestone:  4.6.2.1
Component:  mc-core  |     Version:  4.6.2  
 Keywords:           |    Blocking:         
Blockedby:           |  
---------------------+------------------------------------------------------
 The UTF-8 patch introduces this regression: Ctrl+Left and Alt+Backspace
 proceed one more character than they should.

 (Consistently with unpatched mc, bash, and probably lots of other tools,
 Alt+Backspace should remove a sequence of non-alphanumeric characters
 followed by a sequence of alphanumeric ones, but instead it removes one
 more non-alphanumeric character at the end. Similar for Ctrl+Left.)

 Trivial patch is attached. I've created this patch years ago and posted to
 mc-devel; probably it's already included in some major Linux distributions
 as well.

 Please apply this fix in your UTF-8 patch. Thanks!

-- 
Ticket URL: <www.midnight-commander.org/ticket/256>
Midnight Commander <www.midnight-commander.org>
Midnight Development Center


More information about the mc-devel mailing list