If we are already in the directory that we want to open editor in, we should make a check and skip changing directory.
If we are already in the directory that we want to open editor in, we should make a check and skip changing directory.