Skip to content

Commit

Permalink
Fix problem with editing empty blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRadev committed Mar 4, 2012
1 parent c0bec22 commit 9fb5cb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoload/inline_edit/proxy.vim
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ function! inline_edit#proxy#UpdateOriginalBuffer() dict

call inline_edit#PushCursor()
call cursor(self.start, 1)
exe self.start . ',' . self.end . 'delete _'
if self.end - self.start >= 0
exe self.start . ',' . self.end . 'delete _'
endif
call append(self.start - 1, new_lines)
if g:inline_edit_autowrite
write
Expand Down
3 changes: 3 additions & 0 deletions example/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
background-color: red;
}
</style>

<script type="text/javascript">
</script>
</head>

<body>
Expand Down

0 comments on commit 9fb5cb8

Please sign in to comment.