LiMinggang / madedit-mod

MadEdit-Mod is a cross platform Text/Hex editor(based on the madedit project @ sourceforge)
GNU General Public License v3.0
126 stars 27 forks source link

运行宏稳定性bug #310

Open harvey-git opened 4 years ago

harvey-git commented 4 years ago

Please provide the following information

Madedit-Mod version (or branch): MadEdit-Mod 0.4.19 x86_x64 platform/architecture: Ubuntu/x86_x64 compiler and compiler version: GCC 9.2.1 20191008 wxWidgets 3.1.3 please describe what symptom you see, what you would expect to see instead and how to reproduce it.

我编写里一个简化提取磁力链的宏,一运行madedit就崩溃退出了,没有任何提示,直接窗口消失。 以下是我的宏代码! `####====Todo:Add some help string for this====

Use ####! as the prefix of the hotkey, eg ####!Ctrl-Shift-1 Ctrl, Shift, Alt are keys

Create MadEdit Object for active edit

medit = MadEdit()

medit.Goto( 0 ) medit.ReplaceTextAll("magnet", "\nmagnet", True, False, False, False, -1) medit.ReplaceTextAll(" ", "\n", True, False, False, False, -1) medit.ReplaceTextAll("\n[^m\s]+", "", True, False, False, False, -1) medit.ReplaceTextAll("\n[^m\s]+", "", True, False, False, False, -1) medit.ReplaceTextAll("\n+", "\n", True, False, False, False, -1) `

LiMinggang commented 4 years ago

我试了一下没有问题,看来是跟你的文件有关系,你最好能精简出(去掉多余的内容)一个文件来复现这个问题,否则我没法调试