Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/editors/fxite/files/patch-src_appwin__base.cpp
16461 views
1
--- src/appwin_base.cpp.orig 2013-10-03 09:22:51 UTC
2
+++ src/appwin_base.cpp
3
@@ -25,6 +25,7 @@
4
#include "prefs.h"
5
#include "lang.h"
6
7
+#include "compat.h"
8
#include "scidoc.h"
9
#include "filer.h"
10
#include "toolmgr.h"
11
@@ -45,7 +46,6 @@
12
#include "cmd_utils.h"
13
#include "scidoc_util.h"
14
#include "foreachtab.h"
15
-#include "compat.h"
16
17
#include "intl.h"
18
#include "appwin_base.h"
19
@@ -405,7 +405,14 @@ long TopWindowBase::onTimer(FXObject*o, FXSelector sel
20
long TopWindowBase::onCloseWait(FXObject*o, FXSelector sel, void*p)
21
{
22
if (FXSELTYPE(sel)==SEL_CHORE) {
23
- getApp()->addTimeout(this,ID_CLOSEWAIT, ONE_SECOND/10, NULL);
24
+ static FXint CloseWaitChoreCount=10;
25
+ if (CloseWaitChoreCount>0) {
26
+ CloseWaitChoreCount--;
27
+ getApp()->addChore(this,ID_CLOSEWAIT, NULL);
28
+ } else {
29
+ CloseWaitChoreCount=10;
30
+ getApp()->addTimeout(this,ID_CLOSEWAIT, ONE_SECOND/10, NULL);
31
+ }
32
} else {
33
close();
34
}
35
@@ -1246,7 +1253,12 @@ void TopWindowBase::ParseCommands(FXString &commands)
36
FXString filename=sect.text();
37
if (rowcol.empty()) {
38
FXint beg,end;
39
- if (rx_rowcol.match(filename,&beg,&end)) {
40
+#ifdef FOX_1_7_50_OR_NEWER
41
+ if (rx_rowcol.search(filename,0,filename.length(),Normal,&beg,&end,1)>=0)
42
+#else
43
+ if (rx_rowcol.match(filename,&beg,&end))
44
+#endif
45
+ {
46
if (!FXStat::isFile(filename)) {
47
rowcol=filename.mid(beg,end-beg).text();
48
filename=filename.left(beg).text();
49
50