Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

a little bit more

  • Loading branch information...
commit b6d8cc87bc7e925e1d92f036a4df937c11def620 1 parent 41b037a
@elasticthreads elasticthreads authored
Showing with 5 additions and 2 deletions.
  1. +1 −1  Info.plist
  2. +4 −1 LinkingEditor.m
View
2  Info.plist
@@ -159,7 +159,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>86</string>
+ <string>87</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSArchitecturePriority</key>
View
5 LinkingEditor.m
@@ -1678,7 +1678,7 @@ - (void)mouseDown:(NSEvent *)theEvent{
- (void)doCommandBySelector:(SEL)aSelector{
if (aSelector==@selector(insertTab:)) {
// NSUInteger
-
+ NSRange selectedRange=[self selectedRange];
NSUInteger closer=[self cursorIsInsidePair:@"]"];
if ((closer!=NSNotFound)||([self cursorIsImmediatelyPastPair:@"]"])){
@@ -1723,6 +1723,9 @@ - (void)doCommandBySelector:(SEL)aSelector{
[self setSelectedRange:selRange];
return;
}
+ }else if((selectedRange.length==7)&&([[[self string]substringWithRange:selectedRange] isEqualToString:@"http://"])&&([self.activeParagraphBeforeCursor rangeOfString:@"]: " options:NSBackwardsSearch].location!=NSNotFound)){
+ [self setSelectedRange:NSMakeRange(selectedRange.location+7, 0)];
+ return;
}
}
[super doCommandBySelector:aSelector];
Please sign in to comment.
Something went wrong with that request. Please try again.