Commit 72c6303579c7f4341a3cdc8eef03ab39cad37495 Parent: 9d2c3d784f6de41767f49691ce0cd13b672be729 Author: mcol <mcol@posteo.net> Date: 2019-02-09 10:31:00 +0000 Committer: mcol <mcol@posteo.net> Committed: 2019-02-09 10:31:00 +0000 fix run section to not run extra line at bottom
plugin/tide.vim Modified
@@ -72,9 +72,11 @@ " send current section delimited by double comments function! s:TmuxSendSection() " find shortest comment character - let s:com = split(&comments, ",") - let s:scom = substitute(s:com[0], "^.*:", '', '') - for s:i in s:com + if ! exists("b:com") + let b:com = split(&comments, ",") + endif + let s:scom = substitute(b:com[0], "^.*:", '', '') + for s:i in b:com let s:ncom = substitute(s:i, "^.*:", '', '') if len(s:ncom) < len(s:scom) let s:scom = s:ncom @@ -86,7 +88,7 @@ if s:bottom <= s:top let s:bottom = line('$') elseif s:bottom != line('$') - let s:bottom = prevnonblank(s:bottom) + let s:bottom = prevnonblank(s:bottom-1) endif if s:top == 0 let s:top = 1