void LCursor::paste(string const & data)
{
- dispatch(FuncRequest(LFUN_PASTE, data));
+ if (!data.empty())
+ dispatch(FuncRequest(LFUN_PASTE, data));
}
selection() = true;
anchor_ = where;
pos() += n;
- // Open all collapsed insets
- for (int i = depth() - 1; i >= 0; --i)
- operator[](i).inset().setStatus(*this, InsetBase::Open);
}