[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_2_BRANCH: kdelibs/kate/part
From: Waldo Bastian <bastian () kde ! org>
Date: 2004-03-15 22:12:56
Message-ID: 20040315221256.C2EAA99AC () office ! kde ! org
[Download RAW message or body]
CVS commit by waba:
Make it possible to open /proc/cpuinfo
M +43 -34 katebuffer.cpp 1.143.2.1
--- kdelibs/kate/part/katebuffer.cpp #1.143:1.143.2.1
@@ -506,5 +506,6 @@ bool KateBuffer::openFile (const QString
KateBufFileLoader loader (m_file);
- if ( !loader.file.open( IO_ReadOnly ) || !loader.file.isDirectAccess() )
+ if ( !loader.file.open( IO_ReadOnly ) ||
+ (m_file.startsWith("/dev/") && !loader.file.isDirectAccess()) )
{
clear();
@@ -512,4 +513,6 @@ bool KateBuffer::openFile (const QString
}
+ if (loader.file.isDirectAccess())
+ {
// detect eol
while (true)
@@ -553,4 +556,10 @@ bool KateBuffer::openFile (const QString
loader.file.reset ();
+ }
+ else
+ {
+ loader.lastCharEOL = true;
+ m_doc->config()->setEol (KateDocumentConfig::eolUnix);
+ }
QTextCodec *codec = m_doc->config()->codec();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic