Permalink
Browse files

Version 0.1.2:

- Fixes bug that occurred when ``:set nowrap`` was in effect.  The
  problem was caused by the use of ``normal $`` in the presence of
  mapped ``$``.
  • Loading branch information...
1 parent 1219a55 commit e4a397916429600af5bb6b7a4f9a95ac3ee93af5 @drmikehenry drmikehenry committed Feb 16, 2013
Showing with 9 additions and 10 deletions.
  1. +1 −1 doc/extline.txt
  2. +8 −9 plugin/extline.vim
View
@@ -1,6 +1,6 @@
*extline.txt* Plugin for extending lines (e.g., underlined titles)
-*extline* Version 0.1.1
+*extline* Version 0.1.2
==============================================================================
1. Introduction |extline-intro|
View
@@ -1,13 +1,12 @@
" Vim global plugin for extending lines (e.g., underlined titles).
-" Version: 0.1.1
-" Last Change: September 11, 2009
+" Version: 0.1.2
+" Last Change: February 16, 2013
" Maintainer: Michael Henry (vim at drmikehenry.com)
" License: This file is placed in the public domain.
-" TODO re-enable this
-"if exists('loaded_extline')
- "finish
-"endif
+if exists('loaded_extline')
+ finish
+endif
let loaded_extline = 1
@@ -140,11 +139,11 @@ function! s:UpdateTitle(tg)
exe (titleLineNum - 1) . 's/^.*/\=lineText/g'
endif
exe titleLineNum
- normal $
+ normal! $
if underChar != ''
let lineText = titlePrefix . repeat(underChar, titleLen)
exe (titleLineNum + 1) . 's/^.*/\=lineText/g'
- normal $
+ normal! $
endif
endfunction
@@ -179,7 +178,7 @@ function! s:MakeHline()
if monochar != ''
let lineText = (t . repeat(monochar, 80))[:77]
exe 's/^.*/' . escape(lineText, '/') . '/g'
- normal $
+ normal! $
endif
endfunction

0 comments on commit e4a3979

Please sign in to comment.