[Prime-cvs] CVS update: prime/lib

Back to archive index

Hiroyuki Komatsu komat****@users*****
2004年 12月 23日 (木) 06:53:29 JST


Index: prime/lib/session.rb
diff -u prime/lib/session.rb:1.4.4.15 prime/lib/session.rb:1.4.4.16
--- prime/lib/session.rb:1.4.4.15	Wed Dec 22 03:23:34 2004
+++ prime/lib/session.rb	Thu Dec 23 06:53:28 2004
@@ -1,5 +1,5 @@
 # session.rb
-# $Id: session.rb,v 1.4.4.15 2004/12/21 18:23:34 komatsu Exp $
+# $Id: session.rb,v 1.4.4.16 2004/12/22 21:53:28 komatsu Exp $
 #
 # Copyright (C) 2001 Satoru Takabayashi <sator****@namaz*****>
 # Copyright (C) 2002, 2003, 2004 Hiroyuki Komatsu <komat****@taiya*****>
@@ -318,11 +318,11 @@
 
     add_command(:modify_start, [:SESSION],
                 "Start a modification of the selected conversion.")
-    add_command(:modify_select, [:SESSION, :INDEX],
+    add_command(:segment_select, [:SESSION, :INDEX],
                 "")
-    add_command(:modify_reconvert, [:SESSION],
+    add_command(:segment_reconvert, [:SESSION],
                 "")
-    add_command(:modify_commit, [:SESSION],
+    add_command(:segment_commit, [:SESSION],
                 "")
     add_command(:modify_get_candidates, [:SESSION],
                 "")
@@ -463,12 +463,12 @@
     return modify_get_conversion(session)
   end
 
-  def modify_select (session, index_no)
+  def segment_select (session, index_no)
     @prime.modify_select(session, index_no.to_i)
     return modify_get_conversion(session)
   end
 
-  def modify_reconvert (session)
+  def segment_reconvert (session)
     @prime.modify_reconvert(session)
     return modify_get_candidates(session)
   end
Index: prime/lib/prime2.rb
diff -u prime/lib/prime2.rb:1.1.2.8 prime/lib/prime2.rb:1.1.2.9
--- prime/lib/prime2.rb:1.1.2.8	Wed Dec 22 03:23:34 2004
+++ prime/lib/prime2.rb	Thu Dec 23 06:53:28 2004
@@ -1,5 +1,5 @@
 # prime2.rb: Module for PRIME2 protocol.
-# $Id: prime2.rb,v 1.1.2.8 2004/12/21 18:23:34 komatsu Exp $
+# $Id: prime2.rb,v 1.1.2.9 2004/12/22 21:53:28 komatsu Exp $
 #
 # Copyright (C) 2004 Hiroyuki Komatsu <komat****@taiya*****>
 #     All rights reserved.
@@ -842,7 +842,9 @@
   end
   def position_left ()
     @position -= 1
-    @position %=****@segme*****()
+    if @position < 0 then
+      @position =****@segme*****() - 1
+    end
   end
   def position_left_edge ()
     @position = 0


Prime-cvs メーリングリストの案内
Back to archive index