Commit 0a5c8b05 authored by Zejun Wu's avatar Zejun Wu
Browse files

Fix the behavior of unix-word-rubout (C-w) for emacs bindings

parent cb1a30ca
......@@ -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