[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: [PATCH] Eol in Kate/KWrite
From: Carsten Wolff <AirWulf666 () gmx ! net>
Date: 2001-09-03 13:32:19
[Download RAW message or body]
Hi, list.
The attached patch corrects an error in Kate/Kwrite, wich saved documents
with the wrong End of Line.
Please have a look, if the patch is OK, I'll commit to HEAD and 2_2_BRANCH.
Greetings, Carsten.
--
****************************************************************
* My own little Site: ** THE K Desktop Environment *
* http://www.wolffcarsten.de ** http://www.kde.org *
****************************************************************
["EOL.diff" (text/x-diff)]
--- cvs/kde_2_2_BRANCH/kdebase/kate/view/kateview.cpp Tue Aug 21 17:28:32 2001
+++ cvs_compile/kde_2_2_BRANCH/kdebase/kate/view/kateview.cpp Mon Sep 3 14:47:21 2001
@@ -1521,8 +1521,8 @@
}
void KateView::slotFileStatusChanged()
{
- int eol = getEol()-1;
- eol = eol>=0? eol: 0;
+ int eol = getEol();
+ eol = eol >= 1 ? eol : 0;
setEndOfLine->setCurrentItem(eol);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic