+ if (count == 1)
+ {
+ m_undos.Append( new wxSourceUndoStep( wxSOURCE_UNDO_LINE, y, y, this ) );
+
+ m_lines[y].m_text = tmp;
+ RefreshLine( y );
+ }
+ else
+ {
+ m_undos.Append( new wxSourceUndoStep( wxSOURCE_UNDO_PASTE, y, y+count-1, this ) );
+
+ m_lines[y].m_text = tmp;
+ int i;
+ for (i = 1; i < count; i++)
+ m_lines.Insert( new wxSourceLine( lines[i] ), y+i );
+
+ MyAdjustScrollbars();
+ RefreshDown( y );
+ }