[haskeline] #144: Incorrect behavior of 's' key with a count in Vi mode

haskeline haskeline at projects.haskell.org
Wed Mar 25 01:15:41 GMT 2015


#144: Incorrect behavior of 's' key with a count in Vi mode
----------------------+-----------------------------------------------------
Reporter:  wilywampa  |        Owner:     
    Type:  defect     |       Status:  new
Priority:  major      |    Milestone:     
 Version:             |   Resolution:     
Keywords:             |  
----------------------+-----------------------------------------------------

Comment(by wilywampa):

 This is actually a very easy fix (patch attached):

 {{{
 diff --git a/System/Console/Haskeline/Vi.hs
 b/System/Console/Haskeline/Vi.hs
 index 41e4285..b304c8a 100644
 --- a/System/Console/Haskeline/Vi.hs
 +++ b/System/Console/Haskeline/Vi.hs
 @@ -102,7 +102,7 @@ exitingCommands =  choiceCmd [
                      , simpleChar 'a' +> change appendFromCommandMode
                      , simpleChar 'A' +> change (moveToEnd .
 appendFromCommandMode)
                      , simpleKey End +> change (moveToStart  .
 insertFromCommandMode)
 -                    , simpleChar 's' +> change (insertFromCommandMode .
 deleteChar)
 +                    , simpleChar 's' +> change (deletePrev .
 appendFromCommandMode)
                      , simpleChar 'S' +> noArg >|> killAndStoreI killAll
                      , simpleChar 'C' +> noArg >|> killAndStoreI
 (SimpleMove moveToEnd)
                      ]
 }}}

-- 
Ticket URL: <http://trac.haskell.org/haskeline/ticket/144#comment:1>
haskeline <http://example.org/>
My example project


More information about the Haskeline mailing list