Add forgotten test to apply smart insert and delete during drag and

drop in a text view only when selection granularity is select by word.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29679 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2010-02-19 23:15:13 +00:00
parent 97bdfa294f
commit d10e0c49e5
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2010-02-20 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSTextView.m (-writeSelectionToPasteboard:types:): Add
forgotten test to apply smart insert and delete during drag and
drop only when selection granularity is select by word.
2010-02-18 17:21-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSWindow.m: Remove private menu - (void) _menuUpdate, since

View file

@ -4776,7 +4776,8 @@ other than copy/paste or dragging. */
forType: NSRTFDPboardType] || ret;
}
if ([type isEqualToString: NSSmartPastePboardType])
if ([type isEqualToString: NSSmartPastePboardType] &&
[self selectionGranularity] == NSSelectByWord)
{
ret = [pboard setData: [NSData data]
forType: NSSmartPastePboardType] || ret;