soywiki 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/soywiki.rb +1 -1
  2. data/lib/soywiki.vim +12 -5
  3. metadata +2 -2
@@ -1,7 +1,7 @@
1
1
  require 'string_ext'
2
2
 
3
3
  module Soywiki
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z]\w*\b/
6
6
 
7
7
  def self.run
@@ -207,11 +207,18 @@ func! s:delete_page()
207
207
  let file = bufname('%')
208
208
  let bufnr = bufnr('%')
209
209
 
210
- " go to most recently saved
211
- " this should be a function call
212
- split
213
- call s:load_most_recently_modified_page(1)
214
- wincmd p
210
+ if winnr('$') == 1
211
+ " we need a buffer to replace this one with
212
+ " go to previous buffer
213
+ let next_window = bufnr('#')
214
+ if next_window == -1
215
+ " TODO this fails to execute
216
+ call s:load_page("main.HomePage", 0)
217
+ else
218
+ exec ":b".next_window
219
+ endif
220
+ wincmd p
221
+ endif
215
222
 
216
223
  echo system("git rm " . file)
217
224
  call system("git commit " . file . " -m 'deletion'")
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi