aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index ecca0721..27fb0dab 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -531,6 +531,11 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
[self makeTextSizeSmaller];
return;
}
+ if([charactersIgnMod isEqualToString:@"/"])
+ {
+ [[[[self window] delegate] valueForKeyPath:@"customQueryInstance"] commentOutQuery];
+ return;
+ }
}
// Only process for character autopairing if autopairing is enabled and a single character is being added.
@@ -685,7 +690,6 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
}
-
/*
* Handle special commands - see NSResponder.h for a sample list.
* This subclass currently handles insertNewline: in order to preserve indentation