bugfix- save file prompt while creating a new tab linux

Signed-off-by: Umair <omerjerk@gmail.com>
Merge pull request #2816 from omerjerk/bugfix-editor

bugfix- save file prompt while creating a new tab linux