Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/editors/fxite/files/patch-src_outpane.cpp
16461 views
1
--- src/outpane.cpp.orig 2013-10-03 09:22:51 UTC
2
+++ src/outpane.cpp
3
@@ -115,7 +115,12 @@ void OutputList::GoToError()
4
FXint begs[4]={0,0,0,0};
5
FXint ends[4]={0,0,0,0};
6
FXRex rx(pats[i].pat, REX_CAPTURE);
7
- if (rx.match(txt,begs,ends,REX_FORWARD,3)) {
8
+#ifdef FOX_1_7_50_OR_NEWER
9
+ if (rx.search(txt,0,txt.length(),FXRex::Normal,begs,ends,3)>=0)
10
+#else
11
+ if (rx.match(txt,begs,ends,REX_FORWARD,3))
12
+#endif
13
+ {
14
FXString filename = txt.mid(begs[1],ends[1]-begs[1]);
15
FXString linenum = txt.mid(begs[2],ends[2]-begs[2]);
16
if (FXStat::isFile(filename)) {
17
@@ -228,7 +233,11 @@ void OutputList::SelectFirstError()
18
FXRex rx(_(": [Ee]rror: "));
19
for (FXint i=0; i<getNumItems(); i++) {
20
FXListItem *item=getItem(i);
21
+#ifdef FOX_1_7_50_OR_NEWER
22
+ if (rx.search(item->getText(),0,item->getText().length())>=0) {
23
+#else
24
if (rx.match(item->getText())) {
25
+#endif
26
selectItem(i);
27
setCurrentItem(i);
28
makeItemVisible(i);
29
30