Skip to content

Commit

Permalink
- Fixes code blocks highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
glushchenko committed Jan 11, 2022
1 parent 6019474 commit f73b80a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions FSNotes.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -4425,7 +4425,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 510;
CURRENT_PROJECT_VERSION = 512;
DEVELOPMENT_TEAM = 866P6MTE92;
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -4438,7 +4438,7 @@
INFOPLIST_FILE = "FSNotes Info (Notarized).plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 5.3.1;
MARKETING_VERSION = 5.3.3;
PRODUCT_BUNDLE_IDENTIFIER = co.fluder.FSNotes;
PRODUCT_NAME = FSNotes;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -4460,7 +4460,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 510;
CURRENT_PROJECT_VERSION = 512;
DEPLOYMENT_LOCATION = NO;
DEVELOPMENT_TEAM = 866P6MTE92;
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
Expand All @@ -4474,7 +4474,7 @@
INFOPLIST_FILE = "FSNotes Info (Notarized).plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 5.3.1;
MARKETING_VERSION = 5.3.3;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = co.fluder.FSNotes;
PRODUCT_NAME = FSNotes;
Expand Down Expand Up @@ -4788,7 +4788,7 @@
CODE_SIGN_IDENTITY = "Developer ID Application";
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 510;
CURRENT_PROJECT_VERSION = 512;
DEVELOPMENT_TEAM = 866P6MTE92;
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
ENABLE_NS_ASSERTIONS = NO;
Expand All @@ -4800,7 +4800,7 @@
INFOPLIST_FILE = FSNotes/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 5.3.1;
MARKETING_VERSION = 5.3.3;
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = co.fluder.FSNotes;
PRODUCT_NAME = FSNotes;
Expand All @@ -4822,7 +4822,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 510;
CURRENT_PROJECT_VERSION = 512;
DEPLOYMENT_LOCATION = NO;
DEVELOPMENT_TEAM = 866P6MTE92;
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
Expand All @@ -4835,7 +4835,7 @@
INFOPLIST_FILE = FSNotes/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 5.3.1;
MARKETING_VERSION = 5.3.3;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = co.fluder.FSNotes;
PRODUCT_NAME = FSNotes;
Expand Down
4 changes: 2 additions & 2 deletions FSNotesCore/Shared/CustomTextStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ extension NSTextStorage: NSTextStorageDelegate {
if textStorage.attributedSubstring(from: editedRange).string == "\n" {
let editedParagraph = textStorage.mutableString.paragraphRange(for: NSRange(location: editedRange.location + 1, length: 0))
highlightParagraph(textStorage: textStorage, editedRange: editedParagraph)
} else {
highlightParagraph(textStorage: textStorage, editedRange: editedRange)
}

highlightParagraph(textStorage: textStorage, editedRange: editedRange)
}
}

Expand Down

0 comments on commit f73b80a

Please sign in to comment.