Don't call -insertText: at all in NSTextView -yank when the kill

buffer is empty.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35334 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2012-07-31 08:53:53 +00:00
parent 2903be11c7
commit fe24efe3d6
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-07-31 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSTextView_actions.m (-yank:): Don't call -insertText: at
all when the kill buffer is empty.
2012-07-31 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSApplication.m (-run): Also catch and eventually handle

View file

@ -779,7 +779,10 @@ static NSNumber *float_plus_one(NSNumber *cur)
- (void) yank: (id)sender
{
[self insertText: killBuffer];
if ([killBuffer length] > 0)
{
[self insertText: killBuffer];
}
}