>>>>> "Paul" == Paul Lussier <[EMAIL PROTECTED]> writes:
Paul> Hi all, Did someone mention a patch for the cut and paste
Paul> problem in 1.1.5pre1?
Paul> If so, where is it? I can't find it on the ftp site (though
Paul> maybe I'm looking in the wrong place).
The right place to look at is the cvs repository. Here is a step by
step recipe:
1/ Go to the cvsweb tool:
http://www.lyx.org/cgi-bin/cvsweb.cgi/lyx-devel/
2/ Have a look at the ChangeLog on cvsweb:
http://www.lyx.org/cgi-bin/cvsweb.cgi/lyx-devel/ChangeLog?rev=1.314&content-type=text/x-cvsweb-markup
Since I said it has been fixed just after the release, find the line
about release of 1.1.5pre1 and look around. And there, just one line
above it, bingo!
2000-04-27 Juergen Vigna <[EMAIL PROTECTED]>
* src/CutAndPaste.C (pasteSelection): last paragraph was not returned
correctly only last pos this was a bug.
3/ Now, we know that the file is CutAndPaste.C. So we go to the proper
cvsweb place:
http://www.lyx.org/cgi-bin/cvsweb.cgi/lyx-devel/src/CutAndPaste.C
and see that obviously the change mentionned by Juergen is the last
one. Now you can click on one of the links to get either the latest
CutAndPaste.C or a diff.
Enjoy!
JMarc
PS: OK, OK, I know it is not always that easy. But I thought it would
be a good idea to explain how to use cvsweb...
PS: OK, OK, OK, it is still too much work. Here is the patch:
Index: src/CutAndPaste.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/CutAndPaste.C,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- src/CutAndPaste.C 2000/04/20 13:48:34 1.7
+++ src/CutAndPaste.C 2000/04/27 09:05:04 1.8
@@ -325,8 +325,8 @@
(*par)->ParFromPos(pos)->PasteParagraph();
// store the new cursor position
- tmppar = lastbuffer;
- tmppos = lastbuffer->Last();
+ *par = lastbuffer;
+ pos = lastbuffer->Last();
// maybe some pasting
if (lastbuffer->Next() && paste_the_end) {
@@ -343,7 +343,6 @@
}
// restore the simple cut buffer
buf = simple_cut_clone;
- pos = tmppos;
}
return true;