kate does not show newline inserted at the beginning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdelibs |
Won't Fix
|
Medium
|
|||
kdelibs (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
This was already reported as bug #146306 (which is closed as unreproducible). I have this issue on Gutsy with current kdelibs (kdelibs4c2a-
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-
+++ kdelibs-
@@ -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;
Related branches
Changed in kdelibs: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in kdelibs: | |
status: | Unknown → Confirmed |
Changed in kdelibs: | |
status: | Confirmed → Fix Released |
Changed in kdelibs: | |
status: | Fix Released → Confirmed |
Changed in kdelibs: | |
status: | Confirmed → Won't Fix |
Changed in kdelibs: | |
importance: | Unknown → Medium |
Thanks for this. I can confirm the bug but this patch doesn't seem to solve it for me.