5 Oct 02:36
[patch] Bug 3625
From: Vincent van Ravesteijn <V.F.vanRavesteijn@...>
Subject: [patch] Bug 3625
Newsgroups: gmane.editors.lyx.devel
Date: 2008-10-05 00:39:12 GMT
Subject: [patch] Bug 3625
Newsgroups: gmane.editors.lyx.devel
Date: 2008-10-05 00:39:12 GMT
http://bugzilla.lyx.org/show_bug.cgi?id=3625 Bug 3625 is about the fact that you can't copy text with leading spaces. Ironically this is actively disabled by the following lines: CutAndPaste.cpp:715-722 // copy behind a space if there is one ... while (pos < pars[par].size() && pars[par].isLineSeparator(pos) && (par != cur.selEnd().pit() || pos < cur.selEnd().pos())) ++pos; Why do we want to start copying text after a space ? Well, removing these lines solves the bug. In Buffer::insertStringAsLines we can allow leading spaces from other applications by initializing the space_inserted variable differently. Vincent
Index: src/Buffer.cpp
===================================================================
--- src/Buffer.cpp (revision 26708)
+++ src/Buffer.cpp (working copy)
@@ -593,8 +593,8 @@
{
Font font = fn;
(Continue reading)
RSS Feed