~ubuntu-branches/ubuntu/trusty/kate/trusty

« back to all changes in this revision

Viewing changes to part/vimode/katevinormalmode.cpp

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2013-11-25 17:46:09 UTC
  • mfrom: (1.1.36)
  • Revision ID: package-import@ubuntu.com-20131125174609-hpl0v23qy756d15u
Tags: 4:4.11.95-0ubuntu1
New upstream beta release

Show diffs side-by-side

added added

removed removed

Lines of Context:
3601
3601
    }
3602
3602
  }
3603
3603
 
 
3604
  doc()->editBegin();
 
3605
  if (m_view->selection())
 
3606
  {
 
3607
    pasteAt = m_view->selectionRange().start();
 
3608
    doc()->removeText(m_view->selectionRange());
 
3609
  }
3604
3610
  doc()->insertText( pasteAt, textToInsert, m == Block );
 
3611
  doc()->editEnd();
3605
3612
 
3606
3613
  if (cursorAfterPaste.line() >= doc()->lines())
3607
3614
  {