Summary: | Kate Search in files opens already open files | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Olle Bergkvist <olle.bergkvist> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Olle Bergkvist
2007-12-13 20:50:06 UTC
I can't program in C++, just C, but i can read and maybe understand the code. A "slash eliminator" could be implemented in in the file kdebase-3.5.6/kate/app/kategrepdialog.cpp in the function void GrepTool::itemSelected(const QString& item) I think that would be the most straightforward. Maybe the following code snippet i created in my mind is just nonsense. Feel free to ignore it. Line 296: Dir.rightfilename = m_workingDir + QDir::separator() + filename; could be replaced with if( strcmp(m_workingDir.right(1), "/") ) Dir.rightfilename = m_workingDir + filename; else Dir.rightfilename = m_workingDir + QDir::separator() + filename; Thanks for your detailed report. However, this is just one instantiation of a more general problem (bug #142596). To keep the bug-database managable, I'm marking this report as a duplicate of that. Concerning a fix, url normalization should probably be done at a more central place as well, as this does not only affect the find in file tool. *** This bug has been marked as a duplicate of 142596 *** I didn't write the plugin, but it should use KURL if it doesn't, really ;) It's not a bug in the plugin, and it's not about KUrl itself. This is a bug in katepart itself. katepart should look whether the file (in normalized mode, see KUrl::cleanPath) is already opened. On Friday 14 December 2007, Dominik Haumann wrote:
> katepart should look whether the file (in normalized mode, see
> KUrl::cleanPath) is already opened.
Right, and that can't be hard to fix :)
|