Permalink
Browse files

in characterwise mode, trailing \n is not stripped, fixes #23

  • Loading branch information...
1 parent 3ef2916 commit 6a637074358a4c426f50977957b3cdd0c662830e @chrisbra committed Dec 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/nrrwrgn.vim
View
@@ -947,7 +947,7 @@ fun! nrrwrgn#WidenRegion(force) "{{{1
\ s:nrrw_rgn_lines[instn].vmode)
if s:nrrw_rgn_lines[instn].vmode == 'v' &&
\ s:nrrw_rgn_lines[instn].end[1] -
- \ s:nrrw_rgn_lines[instn].start[1] + 1 == len(cont) + 1
+ \ s:nrrw_rgn_lines[instn].start[1] + 1 == len(cont)
" in characterwise selection, remove trailing \n
call setreg('a', substitute(@a, '\n$', '', ''),
\ s:nrrw_rgn_lines[instn].vmode)

0 comments on commit 6a63707

Please sign in to comment.