Skip to content

Commit

Permalink
* Source/NSTextView.m: Add support for NSFilenamenPboardType.
Browse files Browse the repository at this point in the history
Change by OnFlApp (https://githup.com/onflapp)
  • Loading branch information
fredkiefer committed Mar 18, 2024
1 parent 1e956c9 commit a054b21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-03-18 Fred Kiefer <[email protected]>

* Source/NSTextView.m: Add support for NSFilenamenPboardType.
Change by OnFlApp (https://githup.com/onflapp)

2023-12-28 Fred Kiefer <[email protected]>

* Documentation/manual/AppKit.texi: Move table of contents outside
Expand Down
10 changes: 5 additions & 5 deletions Source/NSTextView.m
Original file line number Diff line number Diff line change
Expand Up @@ -5006,20 +5006,20 @@ the range of characters (if any) to be replaced by the new data. */
}
END_FOR_IN(enumerator)

if (as && changeRange.location != NSNotFound &&
if ([as length] != 0 && changeRange.location != NSNotFound &&
[self shouldChangeTextInRange: changeRange
replacementString: [as string]])
{
{
[self replaceCharactersInRange: changeRange
withAttributedString: as];
[self didChangeText];
changeRange.length = [as length];
[self setSelectedRange: NSMakeRange(NSMaxRange(changeRange),0)];
}

RELEASE(as);
return YES;
}
RELEASE(as);
return YES;
}
}

// color accepting
Expand Down

0 comments on commit a054b21

Please sign in to comment.