mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:10:48 +00:00
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:
parent
2903be11c7
commit
fe24efe3d6
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue