Make sure M-d erases last character of word. Thanks to DynWind for the report

darcs-hash:20060929214804-ac50b-ffb19242fcbd594fb72016427704cb51cf9d0a22.gz
This commit is contained in:
axel 2006-09-30 07:48:04 +10:00
parent 22fe8e6a17
commit 92df4a6d91

View File

@ -2072,7 +2072,7 @@ static void move_word( int dir, int erase )
whitespace, but do for all other non-alphabetic
characters
*/
if( iswspace( c ) /* && ( abs( end_buff_pos-data->buff_pos ) > 1 ) */)
if( iswspace( c ) /* && ( abs( end_buff_pos-data->buff_pos ) > 1 ) */ && (step < 0))
end_buff_pos -= step;
break;
}