From 08be64f38faef12393854ee4da484b144752d77e Mon Sep 17 00:00:00 2001 From: Johan Paulsson Date: Tue, 25 Mar 2014 21:34:12 +0000 Subject: gui: adding a couple of preference options Added preference options for autocompletion and inspectors on top. --- tikzit/src/osx/TikzFormatter.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tikzit/src/osx/TikzFormatter.m') diff --git a/tikzit/src/osx/TikzFormatter.m b/tikzit/src/osx/TikzFormatter.m index 9e45cb6..cb0865d 100644 --- a/tikzit/src/osx/TikzFormatter.m +++ b/tikzit/src/osx/TikzFormatter.m @@ -50,6 +50,10 @@ NSRange addedRange; NSString *addedString; + if(![[NSUserDefaults standardUserDefaults] boolForKey:@"net.sourceforge.tikzit.autocomplete"]){ + return YES; + } + addedRange = NSMakeRange(origSelRange.location, proposedSelRangePtr->location - origSelRange.location); addedString = [*partialStringPtr substringWithRange: addedRange]; -- cgit v1.2.3