Develop and Download Open Source Software

Browse Subversion Repository

Diff of /window.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 28 by bluedwarf, Wed Apr 11 05:42:05 2007 UTC revision 30 by bluedwarf, Wed Apr 11 16:05:58 2007 UTC
# Line 42  module Edmaru Line 42  module Edmaru
42        @config = config        @config = config
43        @cursor = Cursor.new(0, 0)        @cursor = Cursor.new(0, 0)
44        @modeline = Edmaru::SYSTEM_MODELINE.new(self)        @modeline = Edmaru::SYSTEM_MODELINE.new(self)
45          @start_line = 0
46    
47        init_ui        init_ui
48      end      end
# Line 104  module Edmaru Line 105  module Edmaru
105        @buffer.insert(@cursor.row, @cursor.column, str)        @buffer.insert(@cursor.row, @cursor.column, str)
106    
107        #Move the cursor to the end of inserted string.        #Move the cursor to the end of inserted string.
108        if move_cursor        cursor_forward(str.size) if move_cursor
         str.size.times{ |n|  
           cursor_forward  
         }  
       end  
109    
110        refresh        refresh
111      end      end

Legend:
Removed from v.28  
changed lines
  Added in v.30

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26