Bug 139406 - "Format selection" then "undo" removes syntax highlighting from first line of file
Summary: "Format selection" then "undo" removes syntax highlighting from first line of...
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: syntax (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-30 21:39 UTC by Matt Williams
Modified: 2008-08-13 20:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Williams 2006-12-30 21:39:46 UTC
Version:           3.3.94 (using KDE KDE 3.5.5)
Installed from:    SuSE RPMs
OS:                Linux

With a .cpp or .h file open in the editor (kate-part I believe in my case) and no text selected.
Right click anywhere in the text area and select "Format selection" from the context menu.
Then "undo".
The first line of the file loses its syntax highlighting.

The text is re-syntax highlighted if edited or reloaded however.
Comment 1 Matt Williams 2006-12-30 21:41:14 UTC
This seems to be similar to https://bugs.kde.org/show_bug.cgi?id=52350 (fixed nearly four years ago)
Comment 2 Jens Dagerbo 2006-12-30 22:13:32 UTC
Syntax highlighting is kate's domain. Reassigning.
Comment 3 Dominik Haumann 2006-12-31 12:12:52 UTC
Where can I find "Format selection" ? :)
Comment 4 Anders Lund 2006-12-31 12:28:08 UTC
On Sunday 31 December 2006 12:12, Dominik Haumann wrote:
> Where can I find "Format selection"


Wild guess: in kdevelop ;)
Comment 5 Jens Dagerbo 2006-12-31 14:24:04 UTC
Right. The call done from KDevelop in this case is simply KTextEditor::EditInterface::setText().
Comment 6 Christoph Cullmann 2008-08-13 20:46:42 UTC
Can't reproduce with kde 4.x, reopen if still there...