en introduced. Imagine the old do-not-replace-selection policy
> (which is still in 1.3.x). When you have selected a few words and have
> pressed return there, a line break has been added *after* the
> selection (which has not been deleted). If you'd remove
> toggleSelection the
e selected a few words and have pressed return there,
a line break has been added *after* the selection (which has not been
deleted). If you'd remove toggleSelection there from break-paragraph, the
same happened, except that the selection would be still selected after
break-paragraph has been
7 BufferView.C
--- BufferView.C5 Aug 2003 08:07:00 - 1.177
+++ BufferView.C15 Aug 2003 10:04:22 -
@@ -214,12 +214,6 @@ int BufferView::workWidth() const
}
-void BufferView::toggleSelection(bool b)
-{
- pimpl_->toggleSelection(b);
-}
-
-
void BufferView:
Andre Poenitz wrote:
> What is it good for?
it toggles the selection ;-)
> Everything still seems to work if I simply remove it?
It has been used in text3.C before I have introduced my replaceSelection
method (to replace selected text with pasted or typed text). In the old days,
the text would
What is it good for?
Everything still seems to work if I simply remove it?
Andre'
--
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
rView::Pimpl::insetUnlock()
void BufferView::Pimpl::toggleSelection(bool b)
{
- if (bv_->theLockingInset())
- bv_->theLockingInset()->toggleSelection(bv_, b);
screen().toggleSelection(bv_->text, bv_, b);
}