This can be demonstrated with something like: echo howdy hi<control-w> echo howdy I<alt-b>
Previously this would delete/move all the way to the start of 'howdy', rather than just the word 'hi'/'I'. It seems that the code to ignore the character under the cursor was redundant, as all the cases I've tried with it removed seem to do the right thing. Signed-off-by: Ian Munsie <darkstarsw...@gmail.com> --- reader.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/reader.c b/reader.c index 139b4ed..0b70e99 100644 --- a/reader.c +++ b/reader.c @@ -2015,14 +2015,6 @@ static void move_word( int dir, int erase, int new ) } /* - When moving left, ignore the character under the cursor - */ - if( !dir ) - { - end_buff_pos+=2*step; - } - - /* Remove all whitespace characters before finding a word */ while( 1 ) -- 1.7.10 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users