Don't replace tab if it has been mdified (#1645)
Merge pull request #1669 from dinhviethoa/1645-dont-replace-modified-tabs

Don't replace tab if it has been modified (#1645)