As requested, to the list
Please consider.
thanks
john
--
"I personally think Windows NT will be the mainstream operating system within a few
years."
"My belief: Linux will never go mainstream."
"I've always said that Linux could become a serious challenger to Microsoft's Windows
NT."
- Jesse Berst
Index: src/BufferView2.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/BufferView2.C,v
retrieving revision 1.126
diff -u -r1.126 BufferView2.C
--- src/BufferView2.C 12 Apr 2002 09:22:18 -0000 1.126
+++ src/BufferView2.C 15 May 2002 01:00:15 -0000
@@ -427,6 +427,8 @@
// paste
text->pasteSelection(this);
+ // bug 393
+ text->clearSelection();
update(text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
// why fake a selection only I think it should be a real one and not only
// a painted one (Jug 20020318).
Index: src/BufferView_pimpl.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/BufferView_pimpl.C,v
retrieving revision 1.238
diff -u -r1.238 BufferView_pimpl.C
--- src/BufferView_pimpl.C 8 May 2002 17:20:55 -0000 1.238
+++ src/BufferView_pimpl.C 15 May 2002 01:00:22 -0000
@@ -1530,6 +1537,7 @@
} else {
bv_->getLyXText()->insertStringAsLines(bv_, clip);
}
+ bv_->getLyXText()->clearSelection();
update(bv_->text, BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE);
}
Index: src/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v
retrieving revision 1.713
diff -u -r1.713 ChangeLog
--- src/ChangeLog 14 May 2002 15:04:58 -0000 1.713
+++ src/ChangeLog 15 May 2002 01:00:40 -0000
@@ -1,3 +1,8 @@
+2002-05-15 John Levon <[EMAIL PROTECTED]>
+
+ * BufferView_pimpl.C:
+ * BufferView2.C: clear selection on paste (bug 393)
+
2002-05-14 Lars Gullik Bj�nnes <[EMAIL PROTECTED]>
* DepTable.C: include ctime
diff -u -r1.421 ChangeLog
--- src/insets/ChangeLog 14 May 2002 14:22:11 -0000 1.421
+++ src/insets/ChangeLog 15 May 2002 01:02:00 -0000
@@ -1,3 +1,7 @@
+2002-05-15 John Levon <[EMAIL PROTECTED]>
+
+ * insettext.C: clear selection on paste (bug 393)
+
2002-05-11 Dekel Tsur <[EMAIL PROTECTED]>
* insettext.C (latex): Honor the moving_arg argument.
Index: src/insets/insettext.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insettext.C,v
retrieving revision 1.293
diff -u -r1.293 insettext.C
--- src/insets/insettext.C 14 May 2002 14:22:11 -0000 1.293
+++ src/insets/insettext.C 15 May 2002 01:02:13 -0000
@@ -1379,6 +1379,9 @@
} else {
lt->insertStringAsLines(bv, clip);
}
+ // bug 393
+ lt->clearSelection();
+
updwhat = CURSOR_PAR;
updflag = true;
break;
@@ -1396,6 +1399,8 @@
setUndo(bv, Undo::INSERT,
lt->cursor.par(), lt->cursor.par()->next());
lt->pasteSelection(bv);
+ // bug 393
+ lt->clearSelection();
updwhat = CURSOR_PAR;
updflag = true;
}
Index: src/mathed/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/ChangeLog,v
retrieving revision 1.225
diff -u -r1.225 ChangeLog
--- src/mathed/ChangeLog 14 May 2002 09:15:40 -0000 1.225
+++ src/mathed/ChangeLog 15 May 2002 01:02:16 -0000
@@ -1,3 +1,7 @@
+2002-05-15 John Levon <[EMAIL PROTECTED]>
+
+ * math_cursor.C: clear selection on paste (bug 393)
+
2002-05-13 Andr� P�nitz <[EMAIL PROTECTED]>
* math_cursor.[Ch]: honor lyxrc setting for auto_delete_region
Index: src/mathed/math_cursor.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_cursor.C,v
retrieving revision 1.260
diff -u -r1.260 math_cursor.C
--- src/mathed/math_cursor.C 14 May 2002 09:15:40 -0000 1.260
+++ src/mathed/math_cursor.C 15 May 2002 01:02:26 -0000
@@ -691,7 +691,7 @@
selClearOrDel();
theSelection.paste(*this);
//theSelection.grab(*this);
- //selClear();
+ selClear();
}