diff options
author | Bibiko <bibiko@eva.mpg.de> | 2011-01-19 09:55:45 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2011-01-19 09:55:45 +0000 |
commit | 3e18bc68b2ed5769722b82333bb8f84f22462202 (patch) | |
tree | fe782dccdd1fb957a99d1c0c26910c353ed308d9 /Source/SPTextViewAdditions.m | |
parent | 43882565dbb5342c44ac0301a0393d922680be6b (diff) | |
download | sequelpro-3e18bc68b2ed5769722b82333bb8f84f22462202.tar.gz sequelpro-3e18bc68b2ed5769722b82333bb8f84f22462202.tar.bz2 sequelpro-3e18bc68b2ed5769722b82333bb8f84f22462202.zip |
• fixed bug for Bundle input data selected text or entire content
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r-- | Source/SPTextViewAdditions.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m index 21811513..47263311 100644 --- a/Source/SPTextViewAdditions.m +++ b/Source/SPTextViewAdditions.m @@ -562,7 +562,7 @@ replaceRange = currentLineRange; else if([inputFallBackAction isEqualToString:SPBundleInputSourceCurrentQuery]) replaceRange = currentQueryRange; - else if([inputAction isEqualToString:SPBundleInputSourceEntireContent]) + else if([inputFallBackAction isEqualToString:SPBundleInputSourceEntireContent]) replaceRange = NSMakeRange(0,[[self string] length]); } else { replaceRange = currentSelectionRange; @@ -626,6 +626,7 @@ NSError *inputFileError = nil; NSString *input = [NSString stringWithString:[[self string] substringWithRange:replaceRange]]; + [input writeToFile:bundleInputFilePath atomically:YES encoding:NSUTF8StringEncoding |