Issue 239 in vim: Python file with large numbers stalls the editor

99 views
Skip to first unread message

v...@googlecode.com

unread,
Jul 18, 2014, 11:29:29 AM7/18/14
to vim...@vim.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 239 by mik...@sicher.org: Python file with large numbers stalls
the editor
http://code.google.com/p/vim/issues/detail?id=239

What steps will reproduce the problem?

1. Open a new document
2. :set filetype=python
3. type a huge number (like
7853478453785437895437895347895789534798354879534789534798543789345789543789543789543789543798543789345879543789453789543978453789453897543789453798354789345798345789354789543789534897543879345789345789534789543789534978345789453789534789543789543798543789543789543789534789543789354789574389574389574389574389754398754389574389754389754378954379854378954937854378543785439785437985493785437895437894537895439875438974537895437985437984539785497845389745378954378945387945378954378953497853478945378953489753478954397854378954397854378953489753478954397853489754389778543879354798534798354798354789534)

Notice that vim will get slower and slower the longer the number gets.

Seen on MacVim 7.4.258. No additional python plugin apart from what's built
in.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Ken Takata

unread,
Oct 1, 2014, 10:34:37 AM10/1/14
to vim...@googlegroups.com, vim...@vim.org, v...@googlecode.com, n...@python.ca
Hi Neil,

I think I found the cause of this issue:
http://code.google.com/p/vim/issues/detail?id=239

2014/7/19 Sat 0:29:29 UTC+9 v...@googlecode.com:
The slowness is caused by \@<=. Using \zs instead of \@<= seems to fix this.
Please check the attached patch.

Regards,
Ken Takata
fix-issue-239.patch

v...@googlecode.com

unread,
Oct 1, 2014, 10:36:08 AM10/1/14
to vim...@vim.org

Comment #1 on issue 239 by ktakata6...@gmail.com: Python file with large
numbers stalls the editor
https://code.google.com/p/vim/issues/detail?id=239

I posted a patch at here:
https://groups.google.com/d/msg/vim_dev/JnMOfeImvKE/5KKkVC996vEJ

v...@googlecode.com

unread,
Oct 1, 2014, 12:59:22 PM10/1/14
to vim...@vim.org
Updates:
Labels: Runtime

Comment #2 on issue 239 by chrisbr...@googlemail.com: Python file with
(No comment was entered for this change.)

v...@googlecode.com

unread,
Jul 25, 2015, 1:17:05 PM7/25/15
to vim...@vim.org
Updates:
Status: Fixed

Comment #3 on issue 239 by chrisbr...@googlemail.com: Python file with
should be fixed as of
https://code.google.com/p/vim/source/detail?r=b2673982c625503d99459f31b6c0a347e703321a
Reply all
Reply to author
Forward
0 new messages