An error occurred while loading the file. Please try again.
Select Git revision
PTYTextView.m
-
George Nachman authored
Don't assume that rangeOfCharacterFromSet:options: always returns a length of 1. This fixes a bug where copying text where a line ends in a surrogate pair fails because it creates an invalid UTF-16 string, chopping the surrogate pair in half. Issue 3544.
George Nachman authoredDon't assume that rangeOfCharacterFromSet:options: always returns a length of 1. This fixes a bug where copying text where a line ends in a surrogate pair fails because it creates an invalid UTF-16 string, chopping the surrogate pair in half. Issue 3544.