]> git.lyx.org Git - features.git/commitdiff
Another fix for bug #5061: A slight correction of the patch shown described in http...
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 29 Oct 2009 21:02:19 +0000 (21:02 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 29 Oct 2009 21:02:19 +0000 (21:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31791 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text.cpp

index 769285a14924a94ed54cd7d431fe558b50a7aff3..9b38e9b15e11598ba98f29a102fa5cfb95ce9a0f 100644 (file)
@@ -915,7 +915,8 @@ void Text::insertChar(Cursor & cur, char_type c)
        cur.checkBufferStructure();
 
 //             cur.updateFlags(Update::Force);
-       bool boundary = tm.isRTLBoundary(cur.pit(), cur.pos() + 1);
+       bool boundary = cur.boundary()
+               || tm.isRTLBoundary(cur.pit(), cur.pos() + 1);
        setCursor(cur, cur.pit(), cur.pos() + 1, false, boundary);
        charInserted(cur);
 }