Open Ambrevar opened 7 years ago
This is not an eshell-related bug, you can repro it in a much easier way
abc
The problem is that the buffer doesn't end with a final newline which would permit this operation. The why needs closer investigation.
edit: The why seems to be linked to word movement. If you attempt to move with point on the last letter without a final newline, the cursor doesn't move, instead you get an "End of buffer" error. With the final newline, cursor moves by one, which happens to describe the range of cw
and dw
.
This is dependent on evil-move-beyond-eol
and evil-move-cursor-back
. I have them as the non-default values and this works fine for me.
Hm, but should it be? Vim does the right thing here, no matter whether there's a final newline, the last character can be deleted/changed this way.
I wasn't denying that it was a bug, just providing more information
Issue type
Environment
Emacs version: 25.2 Operating System: Arch Linux Evil version: 1.2.12 Evil installation type: MELPA Graphical/Terminal: Graphical Terminal multiplexer: N?A
Reproduction steps
M-x eshell
abc
$
cw
(Or
dw
)Expected behavior
c
should be killed.Actual behavior
It remains after point.