mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-10-26 19:10:11 +03:00
Fix visibility of invisible characters (fix #545)
This commit is contained in:
parent
3d87b8b7c5
commit
8bc4181cc0
@ -2,6 +2,15 @@
|
||||
Change Log
|
||||
==========================
|
||||
|
||||
develop
|
||||
--------------------------
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix an issue where invisible characters could not be hide.
|
||||
|
||||
|
||||
|
||||
2.5.1 (120)
|
||||
--------------------------
|
||||
|
||||
|
@ -179,7 +179,7 @@ static NSString *HiraginoSansName;
|
||||
}
|
||||
|
||||
// draw invisibles
|
||||
if ([self showsInvisibles] || [[self invisibleLines] count] > 0) {
|
||||
if ([self showsInvisibles] && [[self invisibleLines] count] > 0) {
|
||||
CGContextRef context = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
|
||||
NSString *completeString = [[self textStorage] string];
|
||||
CGFloat baselineOffset = [self defaultBaselineOffsetForFont:[self textFont]];
|
||||
|
Loading…
Reference in New Issue
Block a user