forked from qt-creator/qt-creator
To reduce the changes done to the document iterate from the start and back of the replacement text and check whether the document already contains the proposed changes. This also fixes the misplaced snippet part in the if else snippet. Change-Id: I4519ed101cc03e7c49b3a9b775087361c3fd158d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>