4578b7ee5905

Fixes issue #9.
[view raw] [browse files]
author andrey <andrey.petrusenko@gmx.com>
date Tue, 05 Feb 2013 21:13:53 +1100
parents e31bbce52b3f
children 01e68795c7a1
branches/tags (none)
files autoload/splicelib/util/windows.py

Changes

diff -r e31bbce52b3f -r 4578b7ee5905 autoload/splicelib/util/windows.py
--- a/autoload/splicelib/util/windows.py	Wed Dec 12 13:13:04 2012 -0500
+++ b/autoload/splicelib/util/windows.py	Tue Feb 05 21:13:53 2013 +1100
@@ -9,8 +9,8 @@
     vim.command('wincmd c')
 
 def close_all():
-    for winnr in range(len(vim.windows) - 1):
-        close(winnr)
+    focus(1)
+    vim.command('wincmd o')
 
 def split():
     vim.command('wincmd s')