rept 0.2.1 → 0.2.2

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/init.yaml +1 -1
  2. data/lib/rept.rb +9 -2
  3. metadata +2 -2
@@ -1,4 +1,4 @@
1
1
  # �o�[�W�����ԍ�(�S�c�[���ŋ��ʂɂ��Ă���)
2
- version: "0.2.1"
2
+ version: "0.2.2"
3
3
 
4
4
  # @insert
@@ -180,8 +180,13 @@ class Creator
180
180
  end
181
181
 
182
182
  def insertFromMode(mode, markerTexts, insertTexts)
183
+ # �}�������������������H(�}�����Ȃ��ꍇ�������ƌ��Ȃ�)
184
+ success = true
185
+
183
186
  # �}������
184
- success = insertText(markerTexts, insertTexts, headOrTail(mode))
187
+ if (mode != :none)
188
+ success = insertText(markerTexts, insertTexts, headOrTail(mode))
189
+ end
185
190
 
186
191
  # �����A���s�Ɋւ�炸�}���Ώۂ��N���A
187
192
  insertTexts.clear
@@ -252,7 +257,9 @@ class Creator
252
257
 
253
258
  def deleteInsertFromMode(mode, markerTexts, insertTexts)
254
259
  # �}���폜
255
- deleteInsertText(markerTexts, insertTexts, headOrTail(mode))
260
+ if (mode != :none)
261
+ deleteInsertText(markerTexts, insertTexts, headOrTail(mode))
262
+ end
256
263
 
257
264
  # �㏈��
258
265
  insertTexts.clear
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rept
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ongaeshi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-03 00:00:00 +09:00
12
+ date: 2009-08-25 00:00:00 +09:00
13
13
  default_executable: rept
14
14
  dependencies: []
15
15