12d0ec667b63

Implement crash solution given in Google group.

link for Google group:
https://groups.google.com/forum/#!topic/vim_dev/HgKdV33Jy5I
[view raw] [browse files]
author killphi <killphi@gmx.de>
date Fri, 23 Aug 2013 17:07:07 +0200
parents 01e68795c7a1
children ad486b938451
branches/tags (none)
files autoload/splicelib/util/bufferlib.py

Changes

diff -r 01e68795c7a1 -r 12d0ec667b63 autoload/splicelib/util/bufferlib.py
--- a/autoload/splicelib/util/bufferlib.py	Wed Feb 06 11:16:24 2013 -0500
+++ b/autoload/splicelib/util/bufferlib.py	Fri Aug 23 17:07:07 2013 +0200
@@ -7,7 +7,10 @@
 class Buffer(object):
     def __init__(self, i):
         self.number = i + 1
-        self._buffer = vim.buffers[i]
+        for b in vim.buffers:
+            if b.number == self.number:
+                self._buffer = b
+            break
         self.name = self._buffer.name
 
     def open(self, winnr=None):