Permalink
Browse files

• let absolutePathForPath: instantly return the passed in path, if it…

… is already absolute (I had some problems with which screwing up the path, and this solves it, but which is buggy, try for example ‘which CocoaDialog’ in TextMate (⌃R) and then ‘type -p CocoaDialog’, for me the former fails, the latter gives the path)

git-svn-id: http://svn.textmate.org/trunk/Tools/CommitWindowProject@5990 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 146d348 commit 9a87b8b25ec1b8f26493653bde2ee0082ae38e2a @sorbits sorbits committed Nov 7, 2006
Showing with 3 additions and 0 deletions.
  1. +3 −0 CommitWindowController.m
View
@@ -515,6 +515,9 @@ - (void) windowDidResize:(NSNotification *)notification
- (NSString *) absolutePathForPath:(NSString *)path
{
+ if([path hasPrefix:@"/"])
+ return path;
+
NSString * absolutePath = nil;
NSString * errorText;
int exitStatus;

0 comments on commit 9a87b8b

Please sign in to comment.