Skip to content

Commit

Permalink
remove highlighting, when closing narrowed windows
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbra committed Jun 25, 2015
1 parent 1cd3d15 commit d8b1adc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/nrrwrgn.vim
Expand Up @@ -1322,7 +1322,7 @@ fun! nrrwrgn#WidenRegion(force) abort "{{{1
" then where we started, else we might accidentally
" set a match in the narrowed window (might happen if the
" user typed Ctrl-W o in the narrowed window)
if !has_key(s:nrrw_rgn_lines[instn], 'single') && winnr != winnr()
if !(has_key(s:nrrw_rgn_lines[instn], 'single') || winnr != winnr())
call <sid>AddMatches(<sid>GeneratePattern(
\s:nrrw_rgn_lines[instn].start[1:2],
\s:nrrw_rgn_lines[instn].end[1:2],
Expand Down
1 change: 1 addition & 0 deletions doc/NarrowRegion.txt
Expand Up @@ -482,6 +482,7 @@ looking at my Amazon whishlist: http://www.amazon.de/wishlist/2BKAHE8J7Z6UW
- Don't clean up on BufWinLeave autocommand, so that switching buffers will
not destroy the BufWriteCmd (issue https://github.com/chrisbra/NrrwRgn/issues/44,
reported by agguser, thanks!)
- remove highlighting after closing narrowed buffer

0.33: Jan 16, 2015 {{{1
- set local options later, so that FileType autocommands don't trigger to
Expand Down

0 comments on commit d8b1adc

Please sign in to comment.