Changeset 8037
- Timestamp:
- 03/17/08 19:24:30 (5 years ago)
- Files:
-
- 1 modified
-
lang/ruby/vimcolor/lib/vimcolor.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/vimcolor/lib/vimcolor.rb
r8036 r8037 14 14 def initialize(vim_command = VIM_COMMAND, vim_options = VIM_OPTIONS, vim_preset = VIM_PRESET, vim_postset = VIM_POSTSET) 15 15 require 'tempfile' 16 @vim_command = vim_command 17 @vim_options = vim_options 16 @vim_command = vim_command.dup 17 @vim_options = vim_options.dup 18 18 @vim_preset = vim_preset.dup 19 19 @vim_postset = vim_postset.dup … … 26 26 27 27 if options.is_a? Hash 28 if options [:filetype]28 if options.include? :filetype 29 29 @vim_postset.push(":set filetype=#{options[:filetype]}") 30 30 end 31 if options [:encoding]31 if options.include? :encoding 32 32 @vim_preset.push("+set encoding=#{options[:encoding]}") 33 33 end … … 72 72 formatter = formatter_class.new(*formatter_args) 73 73 while s.scan_until(/(.*?)>(.*?)>(.*?)<\2</m) 74 formatter.push('', s[1]) 74 formatter.push('', s[1]) unless s[1].empty? 75 75 type = s[2] 76 76 text = s[3] … … 212 212 def push(type, text) 213 213 seq = '' 214 codes = @colors[type] 214 codes = @colors[type].dup 215 215 codes.unshift(:reset) 216 216 codes.each {|c|
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)