Update source when the tab is switched afer loading a new original source file.
Until now, when a second original source is loaded and the the tab was switched to
'formatted', the current settings were not applied to the original source file.
This commit fix the above bug.