403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/editors/fxite/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/editors/fxite/files/patch-src_appwin__base.cpp
--- src/appwin_base.cpp.orig	2013-10-03 09:22:51 UTC
+++ src/appwin_base.cpp
@@ -25,6 +25,7 @@
 #include "prefs.h"
 #include "lang.h"
 
+#include "compat.h"
 #include "scidoc.h"
 #include "filer.h"
 #include "toolmgr.h"
@@ -45,7 +46,6 @@
 #include "cmd_utils.h"
 #include "scidoc_util.h"
 #include "foreachtab.h"
-#include "compat.h"
 
 #include "intl.h"
 #include "appwin_base.h"
@@ -405,7 +405,14 @@ long TopWindowBase::onTimer(FXObject*o, FXSelector sel
 long TopWindowBase::onCloseWait(FXObject*o, FXSelector sel, void*p)
 {
   if (FXSELTYPE(sel)==SEL_CHORE) {
-    getApp()->addTimeout(this,ID_CLOSEWAIT, ONE_SECOND/10, NULL);
+    static FXint CloseWaitChoreCount=10;
+    if (CloseWaitChoreCount>0) {
+      CloseWaitChoreCount--;
+      getApp()->addChore(this,ID_CLOSEWAIT, NULL);
+    } else {
+      CloseWaitChoreCount=10;
+      getApp()->addTimeout(this,ID_CLOSEWAIT, ONE_SECOND/10, NULL);
+    }
   } else {
     close();
   }
@@ -1246,7 +1253,12 @@ void TopWindowBase::ParseCommands(FXString &commands)
             FXString filename=sect.text();
             if (rowcol.empty()) {
               FXint beg,end;
-              if (rx_rowcol.match(filename,&beg,&end)) {
+#ifdef FOX_1_7_50_OR_NEWER
+              if (rx_rowcol.search(filename,0,filename.length(),Normal,&beg,&end,1)>=0)
+#else
+              if (rx_rowcol.match(filename,&beg,&end))
+#endif
+              {
                 if (!FXStat::isFile(filename)) {
                   rowcol=filename.mid(beg,end-beg).text();
                   filename=filename.left(beg).text();

Youez - 2016 - github.com/yon3zu
LinuXploit