Skip to content

Commit

Permalink
Merge pull request #49 from nextcloud/develop
Browse files Browse the repository at this point in the history
Version  4.2.0
  • Loading branch information
marinofaggiana authored Oct 11, 2023
2 parents b9a4a3f + f9e2387 commit 6a779ec
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
Carthage/Checkouts
Carthage/Build
MacDist/*
.DS_Store
*.xcuserstate
18 changes: 9 additions & 9 deletions iOCNotes.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -850,7 +850,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 0;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = NKUJUXUJ3B;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -862,7 +862,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 4.1.8;
MARKETING_VERSION = 4.1.9;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.peterandlinda.iOCNotes.ActionExtension;
Expand All @@ -888,7 +888,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 0;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = NKUJUXUJ3B;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -900,7 +900,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 4.1.8;
MARKETING_VERSION = 4.1.9;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.peterandlinda.iOCNotes.ActionExtension;
Expand Down Expand Up @@ -1027,7 +1027,7 @@
CODE_SIGN_ENTITLEMENTS = iOCNotes/iOCNotes.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 0;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = NKUJUXUJ3B;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -1041,7 +1041,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 4.1.8;
MARKETING_VERSION = 4.2.0;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = "com.peterandlinda.${TARGET_NAME:rfc1034identifier}";
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";
Expand All @@ -1063,7 +1063,7 @@
CODE_SIGN_ENTITLEMENTS = iOCNotes/iOCNotes.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 0;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = NKUJUXUJ3B;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -1077,7 +1077,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 4.1.8;
MARKETING_VERSION = 4.2.0;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = "com.peterandlinda.${TARGET_NAME:rfc1034identifier}";
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "closure #2 in EditorViewController.textView(_:shouldChangeTextIn:replacementText:):EditorViewController.swift">
<PersistentStrings>
<PersistentString
value = "line.suffix(from: precedingLineString.endIndex)">
</PersistentString>
<PersistentString
value = "line.suffix">
</PersistentString>
<PersistentString
value = "line.count">
</PersistentString>
<PersistentString
value = "precedingLineString.endIndex">
</PersistentString>
<PersistentString
value = "(line.suffix(from: precedingLineString.endIndex))">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "NotesTableViewController.shouldPerformSegue(withIdentifier:sender:):NotesTableViewController.swift">
<PersistentStrings>
Expand Down
4 changes: 3 additions & 1 deletion iOCNotes/EditorViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ extension EditorViewController: UITextViewDelegate {
var lineRemainder = ""
let precedingLineIndex = allLines.firstIndex { line in
if line.hasPrefix(precedingLineString) {
lineRemainder = String(line.suffix(from: precedingLineString.endIndex))
let distance = precedingLineString.distance(from: precedingLineString.startIndex, to: precedingLineString.endIndex)
let indexSuffix = line.count - distance
lineRemainder = String(line.suffix(indexSuffix))
return true
}
return false
Expand Down

0 comments on commit 6a779ec

Please sign in to comment.