fix clang-format-region for unsaved buffer