Bug#682589: omlet: 100% cpu usage when indenting match
Package: ocaml-tools
Version: 20120103-2
Severity: normal
Hi,
when a ocaml file contains a string with "*)" then editing a match will
result in some endless loop at 100% cpu usage.
To reproduce, create an ocaml file with the following content:
let foo = "*)" in
match foo with
| _ -> ()
1. position the cursor on the last line at the very end.
2. press ENTER to create a new line
3. press the pipe key
4. observe how vim becomes unresponsive and consumes 100% cpu
I only managed to come back to vim after pressing CTRL+C
It doesnt matter where in the file the string containing "*)" is located.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.4-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ocaml-tools depends on:
ii ocaml-base-nox [ocaml-base-nox-3.12.1] 3.12.1-3
Versions of packages ocaml-tools recommends:
ii vim 2:7.3.547-1
ii vim-addon-manager 0.5.0
Versions of packages ocaml-tools suggests:
ii autoconf 2.69-1
pn otags <none>
-- debconf-show failed
Reply to: