]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
* do not lookup the same macro all the time
[lyx.git] / src / Cursor.cpp
index fd6bb6e7d8512e6a6dfb46993af2f5660a069e77..95d44b747b95473dbaf14ccbea266976dcdc348e 100644 (file)
@@ -249,8 +249,9 @@ namespace {
        {
                odocstringstream ods;
                ods << '\n';
-               // only add blank line if we're not in an ERT inset
-               if (par.ownerCode() != Inset::ERT_CODE)
+               // only add blank line if we're not in an ERT or Listings inset
+               if (par.ownerCode() != Inset::ERT_CODE 
+                   && par.ownerCode() != Inset::LISTINGS_CODE)
                        ods << '\n';
                return ods.str();
        }
@@ -1339,10 +1340,4 @@ void Cursor::fixIfBroken()
 }
 
 
-bool Cursor::isRTL() const
-{
-       return innerParagraph().isRightToLeftPar(bv().buffer()->params());
-}
-
-
 } // namespace lyx