Public bug reported:

This was already reported as bug #146306 (which is closed as
unreproducible). I have this issue on Gutsy with current kdelibs
(kdelibs4c2a-3.5.8-0ubuntu3.1).

To reproduce: run Kate on a file with more lines than kate's window has
(this is essential), then hit Enter at the beginning of the file. Kate
inserts a line but does not display it (until you hit Uparrow or
something similar).

This also happens if it is not the beginning of the file but the
beginning of the visible part. You can hit Enter several times and still
see no effect (as if the key did not work). Same behavior with Kile
instead of Kate.

The bug was introduced at some point between KDE 3.5.5 and KDE 3.5.8.
The following patch fixes it.

--- kdelibs-3.5.8/kate/part/katesupercursor.cpp.orig    2007-05-14 
11:52:27.000000000 +0400
+++ kdelibs-3.5.8/kate/part/katesupercursor.cpp 2008-01-20 16:39:19.000000000 
+0300
@@ -186,7 +186,7 @@
 {
   if (newLine)
   {
-    if (m_line > int(line) || (m_line == int(line) && m_col >= int(col)))
+    if (m_line > int(line) || (m_line == int(line) && m_col > int(col)))
     {
       if(m_line == int(line))
          m_col -= col;

** Affects: kdelibs (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: patch

-- 
kate does not show newline inserted at the beginning
https://bugs.launchpad.net/bugs/184675
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to