Skip to content

Commit

Permalink
prevent buffer changed warning on SWRenameTo.
Browse files Browse the repository at this point in the history
  • Loading branch information
0robustus1 committed Jan 24, 2014
1 parent e5bcc57 commit 78ab992
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/soywiki.vim
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ func! s:rename_page(page_path_or_title)
echo system("mv " . original_file . " " . newfile) echo system("mv " . original_file . " " . newfile)
endif endif
call system("git commit -am 'rename wiki page'") call system("git commit -am 'rename wiki page'")
let &buftype = "nofile"
exec "!" . s:rename_links_command . s:wiki_root() . " " . original_file . " " . newfile exec "!" . s:rename_links_command . s:wiki_root() . " " . original_file . " " . newfile
call system("git commit -am 'rename wiki links'") call system("git commit -am 'rename wiki links'")
exec "e " . newfile exec "e " . newfile
Expand Down

0 comments on commit 78ab992

Please sign in to comment.