Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行宏稳定性bug #310

Open
harvey-git opened this issue Aug 8, 2020 · 1 comment
Open

运行宏稳定性bug #310

harvey-git opened this issue Aug 8, 2020 · 1 comment

Comments

@harvey-git
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants