Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

error when narrowed window was moved to a new tab

  • Loading branch information...
commit 4a0b7e3d6085ad6f4049dac16094af24cdf39b29 1 parent b1fd550
@chrisbra authored
Showing with 4 additions and 1 deletion.
  1. +2 −1  autoload/nrrwrgn.vim
  2. +2 −0  doc/NarrowRegion.txt
View
3  autoload/nrrwrgn.vim
@@ -182,7 +182,8 @@ fun! <sid>WriteNrrwRgn(...) "{{{1
endif
else
call <sid>StoreLastNrrwRgn(nrrw_instn)
- let winnr = bufwinnr(b:orig_buf)
+ " b:orig_buf might not exists (see issue #2)
+ let winnr = (exists("b:orig_buf") ? bufwinnr(b:orig_buf) : 0)
" Best guess
if bufname('') =~# 'Narrow_Region' && winnr > 0
exe ':noa'. winnr. 'wincmd w'
View
2  doc/NarrowRegion.txt
@@ -360,6 +360,8 @@ looking at my Amazon whishlist: http://www.amazon.de/wishlist/2BKAHE8J7Z6UW
- update original window for multi narrowed regions (
https://github.com/chrisbra/NrrwRgn/24, reported by Dane Summers, thanks!),
use the g:nrrw_rgn_update_orig_win variable to enable
+- error when narrowed window was moved to new tab and trying to quit
+ (https://github.com/chrisbra/NrrwRgn/2, reported by Mario Ricalde, thanks!)
0.31: Feb 16, 2013 {{{1
- NRM threw some errors (reported by pydave in
Please sign in to comment.
Something went wrong with that request. Please try again.