cutting: ignore the mark when a word is deleted

Just like for deleting a word to the left, the mark should be ignored
also when deleting a word to the right.

This fixes https://savannah.gnu.org/bugs/?56241.
master
Benno Schulenberg 2019-04-30 09:50:21 +02:00
parent 542426f1f1
commit 7c08e8ea69
1 changed files with 2 additions and 0 deletions

View File

@ -203,6 +203,8 @@ void chop_previous_word(void)
/* Delete a word rightward. */
void chop_next_word(void)
{
openfile->mark = NULL;
if (is_cuttable(openfile->current_x > 0))
chop_word(FORWARD);
}