fakevim: fix endless loop in certain search&replace operations
fakevim: fix endless loop in certain search&replace operations

Task-number: QTCREATORBUG-5697
Change-Id: I25e9ef4ef042efa2b4dd670f5177e5e170fbaaf9
Reviewed-on: http://codereview.qt.nokia.com/2562
Reviewed-by: hjk <6fac1c92f5b9c7890a04d7f8a9d8912d16355eac@ovi.com>

bakaiadam/collaborative_qt_creator,maui-packages/qt-creator,KDAB/KDAB-Creator,colede/qtcreator,amyvmiwei/qt-creator,omniacreator/qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,maui-packages/qt-creator,malikcjm/qtcreator,KDE/android-qt-creator,darksylinc/qt-creator,malikcjm/qtcreator,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,farseerri/git_code,kuba1/qtcreator,jonnor/qt-creator,darksylinc/qt-creator,richardmg/qtcreator,jonnor/qt-creator,colede/qtcreator,kuba1/qtcreator,jonnor/qt-creator,malikcjm/qtcreator,AltarBeastiful/qt-creator,jonnor/qt-creator,amyvmiwei/qt-creator,colede/qtcreator,azat/qtcreator,farseerri/git_code,Distrotech/qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,duythanhphan/qt-creator,KDAB/KDAB-Creator,martyone/sailfish-qtcreator,richardmg/qtcreator,AltarBeastiful/qt-creator,maui-packages/qt-creator,xianian/qt-creator,Distrotech/qtcreator,darksylinc/qt-creator,colede/qtcreator,kuba1/qtcreator,duythanhphan/qt-creator,richardmg/qtcreator,duythanhphan/qt-creator,dmik/qt-creator-os2,farseerri/git_code,xianian/qt-creator,dmik/qt-creator-os2,darksylinc/qt-creator,darksylinc/qt-creator,KDE/android-qt-creator,bakaiadam/collaborative_qt_creator,maui-packages/qt-creator,malikcjm/qtcreator,darksylinc/qt-creator,omniacreator/qtcreator,omniacreator/qtcreator,martyone/sailfish-qtcreator,kuba1/qtcreator,bakaiadam/collaborative_qt_creator,AltarBeastiful/qt-creator,richardmg/qtcreator,martyone/sailfish-qtcreator,xianian/qt-creator,KDAB/KDAB-Creator,maui-packages/qt-creator,Distrotech/qtcreator,xianian/qt-creator,ostash/qt-creator-i18n-uk,hdweiss/qt-creator-visualizer,Distrotech/qtcreator,duythanhphan/qt-creator,syntheticpp/qt-creator,duythanhphan/qt-creator,hdweiss/qt-creator-visualizer,ostash/qt-creator-i18n-uk,farseerri/git_code,colede/qtcreator,maui-packages/qt-creator,AltarBeastiful/qt-creator,farseerri/git_code,darksylinc/qt-creator,ostash/qt-creator-i18n-uk,dmik/qt-creator-os2,danimo/qt-creator,azat/qtcreator,bakaiadam/collaborative_qt_creator,syntheticpp/qt-creator,hdweiss/qt-creator-visualizer,xianian/qt-creator,kuba1/qtcreator,dmik/qt-creator-os2,KDAB/KDAB-Creator,amyvmiwei/qt-creator,omniacreator/qtcreator,amyvmiwei/qt-creator,bakaiadam/collaborative_qt_creator,duythanhphan/qt-creator,amyvmiwei/qt-creator,xianian/qt-creator,malikcjm/qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,dmik/qt-creator-os2,azat/qtcreator,xianian/qt-creator,bakaiadam/collaborative_qt_creator,amyvmiwei/qt-creator,danimo/qt-creator,kuba1/qtcreator,KDAB/KDAB-Creator,xianian/qt-creator,ostash/qt-creator-i18n-uk,syntheticpp/qt-creator,KDE/android-qt-creator,malikcjm/qtcreator,danimo/qt-creator,jonnor/qt-creator,omniacreator/qtcreator,AltarBeastiful/qt-creator,ostash/qt-creator-i18n-uk,maui-packages/qt-creator,Distrotech/qtcreator,danimo/qt-creator,martyone/sailfish-qtcreator,richardmg/qtcreator,kuba1/qtcreator,dmik/qt-creator-os2,danimo/qt-creator,kuba1/qtcreator,richardmg/qtcreator,jonnor/qt-creator,KDE/android-qt-creator,hdweiss/qt-creator-visualizer,martyone/sailfish-qtcreator,dmik/qt-creator-os2,farseerri/git_code,darksylinc/qt-creator,KDE/android-qt-creator,danimo/qt-creator,KDE/android-qt-creator,ostash/qt-creator-i18n-uk,azat/qtcreator,hdweiss/qt-creator-visualizer,azat/qtcreator,malikcjm/qtcreator,hdweiss/qt-creator-visualizer,xianian/qt-creator,syntheticpp/qt-creator,martyone/sailfish-qtcreator,omniacreator/qtcreator,syntheticpp/qt-creator,farseerri/git_code,KDAB/KDAB-Creator,amyvmiwei/qt-creator,kuba1/qtcreator,ostash/qt-creator-i18n-uk,richardmg/qtcreator,colede/qtcreator,azat/qtcreator,syntheticpp/qt-creator,syntheticpp/qt-creator,Distrotech/qtcreator,danimo/qt-creator,KDE/android-qt-creator,duythanhphan/qt-creator,colede/qtcreator,AltarBeastiful/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,KDE/android-qt-creator,bakaiadam/collaborative_qt_creator