Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabesoft committed Mar 28, 2015
1 parent 95351ff commit 88f3937
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/ags.vim
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function! s:show(lines, ...)
let obj = { 'add': a:0 && a:1, 'lines': a:lines }

function obj.run()
if self.add
if self.add && line('$') > 1
call append('$', self.lines)
else
call ags#buf#replaceLines(self.lines)
Expand Down
4 changes: 4 additions & 0 deletions autoload/ags/edit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ let s:editLines = []
" The actual file line starts after the line number offset
let s:offset = 0

" Line number offset pattern
" Used to remove the line numbers from the file line
let s:offsetPat = '^'

" Cursor operations
let s:cur = {}

Expand Down

0 comments on commit 88f3937

Please sign in to comment.