From a7ad078dba900161a6f686608fbd015658323de3 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 5 Jan 2012 19:03:06 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20issue=20for=20line=20numbering=20vi?= =?UTF-8?q?ew=20if=20associated=20textView=20is=20scrolled=20from=20origin?= =?UTF-8?q?=20{0,0};=20now=20it's=20synchronized=20=E2=80=A2=20minor=20spe?= =?UTF-8?q?ed=20ups=20for=20custom=20query=20editor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPCustomQuery.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPCustomQuery.m') diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index 63ba3bab..6aeca55a 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -2677,7 +2677,7 @@ currentQueryRange = NSMakeRange(0, 0); [textView setQueryRange:qRange]; - [textView setNeedsDisplay:YES]; + [textView setNeedsDisplayInRect:[textView bounds]]; // disable "Comment Current Query" menu item if no current query is selectable [commentCurrentQueryMenuItem setEnabled:(currentQueryRange.length) ? YES : NO]; -- cgit v1.2.3