willys5000 / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Python file with large numbers stalls the editor #239

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Open a new document
2. :set filetype=python
3. type a huge number (like 
78534784537854378954378953478957895347983548795347895347985437893457895437895437
89543789543798543789345879543789453789543978453789453897543789453798354789345798
34578935478954378953489754387934578934578953478954378953497834578945378953478954
37895437985437895437895437895347895437893547895743895743895743895743897543987543
89574389754389754378954379854378954937854378543785439785437985493785437895437894
53789543987543897453789543798543798453978549784538974537895437894538794537895437
89534978534789453789534897534789543978543789543978543789534897534789543978534897
54389778543879354798534798354798354789534)

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.

Original issue reported on code.google.com by mik...@sicher.org on 18 Jul 2014 at 3:29

GoogleCodeExporter commented 9 years ago
I posted a patch at here: 
https://groups.google.com/d/msg/vim_dev/JnMOfeImvKE/5KKkVC996vEJ

Original comment by ktakata6...@gmail.com on 1 Oct 2014 at 2:35

GoogleCodeExporter commented 9 years ago

Original comment by chrisbr...@googlemail.com on 1 Oct 2014 at 4:58