Browse Subversion Repository
Diff of /buffer.rb
Parent Directory
| Revision Log
| Patch
| 121 |
raise "Invalid position was specified for 'insert' method." |
raise "Invalid position was specified for 'insert' method." |
| 122 |
end |
end |
| 123 |
|
|
| 124 |
if str.empty? |
return if str.empty? # Nothing to be inserted. |
|
# Nothing to be inserted. |
|
|
return |
|
|
end |
|
| 125 |
|
|
| 126 |
if str.include?("\n") |
if str.include?("\n") |
| 127 |
new_lines = str.split(/\n/, -1) |
new_lines = str.split(/\n/, -1) |
|
|
Legend:
| Removed from v.27 |
|
| changed lines |
| |
Added in v.32 |
|
|
|