Bug fix for smart beginning/end of buffer command.  The
shift-selection mode is compensated for.