Commit 704bb20b authored by cblu's avatar cblu

Fixed: 3106061 - REGRESSION: Copy in text view copies all text not just selection

        * Misc.subproj/WebSearchableTextView.m:
        (-[WebSearchableTextView copy:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2773 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 55be9897
2002-11-19 Chris Blumenberg <cblu@apple.com>
Fixed: 3106061 - REGRESSION: Copy in text view copies all text not just selection
* Misc.subproj/WebSearchableTextView.m:
(-[WebSearchableTextView copy:]):
2002-11-19 Chris Blumenberg <cblu@apple.com>
Fixed: 3092588 - redraw errors in QT controller if window is in background
......
2002-11-19 Chris Blumenberg <cblu@apple.com>
Fixed: 3106061 - REGRESSION: Copy in text view copies all text not just selection
* Misc.subproj/WebSearchableTextView.m:
(-[WebSearchableTextView copy:]):
2002-11-19 Chris Blumenberg <cblu@apple.com>
Fixed: 3092588 - redraw errors in QT controller if window is in background
......
......@@ -48,7 +48,7 @@ - (void)copy:(id)sender
[super copy:sender];
}else{
//Convert CRLF to LF to workaround: 3105538 - Carbon doesn't convert text with CRLF to LF
NSMutableString *string = [[self string] mutableCopy];
NSMutableString *string = [[[self string] substringWithRange:[self selectedRange]] mutableCopy];
[string replaceOccurrencesOfString:@"\r\n" withString:@"\n" options:0 range:NSMakeRange(0, [string length])];
NSPasteboard *pasteboard = [NSPasteboard generalPasteboard];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment