Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit410b822

Browse files
committed
fixed a crash with oh-my-zsh: 'which' command returns 'clang-format not found' on oh-my-zsh
1 parent6e6b30c commit410b822

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎ClangFormat/TRVSFormatter.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ - (void)fragmentsOfContinuousLineRanges:(NSArray *)continuousLineRanges
225225
encoding:NSUTF8StringEncoding];
226226
outputPath = [outputPath
227227
stringByTrimmingCharactersInSet:[NSCharacterSetnewlineCharacterSet]];
228-
if ([outputPathlength]) {
228+
229+
BOOL isDirectory =NO;
230+
if ([[NSFileManagerdefaultManager]fileExistsAtPath:outputPathisDirectory:&isDirectory] && !isDirectory) {
229231
executablePath = outputPath;
230232
}
231233
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp