| Summary: | Kate command line: regex not working | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | vassari <vassari79> |
| Component: | kwrite | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | christoph |
| Priority: | NOR | ||
| Version First Reported In: | 25.04.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/ktexteditor/-/commit/6b88616baf6b66c941d9f4ef84f6277da07519df | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
vassari
2025-04-28 01:43:30 UTC
CommandRangeExpressionParser::parseRangeExpression seems to not properly parse that, it doesn't enter the
if (match.hasMatch() && match.capturedLength(0) > 0) {
commandTmp.remove(m_cmdRangeRegex);
code path at all.
(In reply to Christoph Cullmann from comment #1) > CommandRangeExpressionParser::parseRangeExpression seems to not properly > parse that, it doesn't enter the > > if (match.hasMatch() && match.capturedLength(0) > 0) { > commandTmp.remove(m_cmdRangeRegex); > > code path at all. Hi, so, is something gonna happend with this? Any idea? Regards. (In reply to vassari from comment #2) > (In reply to Christoph Cullmann from comment #1) > > CommandRangeExpressionParser::parseRangeExpression seems to not properly > > parse that, it doesn't enter the > > > > if (match.hasMatch() && match.capturedLength(0) > 0) { > > commandTmp.remove(m_cmdRangeRegex); > > > > code path at all. > > Hi, > > so, is something gonna happend with this? > > Any idea? > > Regards. Beside tracing it down to that location, I had no time to fix that. If somebody else has time to look at that in more detail, help is welcome. A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/814 Git commit 6b88616baf6b66c941d9f4ef84f6277da07519df by Waqar Ahmed. Committed on 01/06/2025 at 09:42. Pushed by cullmann into branch 'master'. Fix m_marks not initialized This got lost during refactorings years ago The bigger problem here is that we have 2 copies of this class, one in ViMode and this one. The ViMode one seems to be the maintained variant so we should drop this class soon and use the same class everywhere. M +22 -0 autotests/src/kateview_test.cpp M +1 -0 autotests/src/kateview_test.h M +1 -0 src/utils/katecommandrangeexpressionparser.cpp https://invent.kde.org/frameworks/ktexteditor/-/commit/6b88616baf6b66c941d9f4ef84f6277da07519df |