ad486b938451

fix whitespace, fix numbering
[view raw] [browse files]
author killphi <killphi@gmx.de>
date Mon, 16 Sep 2013 12:26:50 +0200
parents 12d0ec667b63
children 8e1c1dc358de
branches/tags (none)
files autoload/splicelib/util/bufferlib.py

Changes

--- a/autoload/splicelib/util/bufferlib.py	Fri Aug 23 17:07:07 2013 +0200
+++ b/autoload/splicelib/util/bufferlib.py	Mon Sep 16 12:26:50 2013 +0200
@@ -6,11 +6,11 @@
 
 class Buffer(object):
     def __init__(self, i):
-        self.number = i + 1
+        self.number = i
         for b in vim.buffers:
             if b.number == self.number:
                 self._buffer = b
-            break
+                break
         self.name = self._buffer.name
 
     def open(self, winnr=None):
@@ -37,23 +37,23 @@
 class _BufferList(object):
     @property
     def original(self):
-        return Buffer(0)
+        return Buffer(1)
 
     @property
     def one(self):
-        return Buffer(1)
+        return Buffer(2)
 
     @property
     def two(self):
-        return Buffer(2)
+        return Buffer(3)
 
     @property
     def result(self):
-        return Buffer(3)
+        return Buffer(4)
 
     @property
     def hud(self):
-        return Buffer(int(vim.eval("bufnr('__Splice_HUD__')")) - 1)
+        return Buffer(int(vim.eval("bufnr('__Splice_HUD__')")))
 
 
     @property