Commit e1a51611 authored by judah's avatar judah
Browse files

Merge pull request #39 from watashi/unix_word_rubout

Fix the behavior of unix-word-rubout (C-w) for emacs bindings
parents cb1a30ca 0a5c8b05
......@@ -89,7 +89,7 @@ rotatePaste im = get >>= loop
wordRight, wordLeft, bigWordLeft :: InsertMode -> InsertMode
wordRight = goRightUntil (atStart (not . isAlphaNum))
wordLeft = goLeftUntil (atStart isAlphaNum)
bigWordLeft = goLeftUntil (atStart isSpace)
bigWordLeft = goLeftUntil (atStart (not . isSpace))
modifyWord :: ([Grapheme] -> [Grapheme]) -> InsertMode -> InsertMode
modifyWord f im = IMode (reverse (f ys1) ++ xs) ys2
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment