mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 22:50:59 +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
8835189718
commit
9dbc0b0dfc
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>
|
2012-07-31 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
* Source/NSApplication.m (-run): Also catch and eventually handle
|
* Source/NSApplication.m (-run): Also catch and eventually handle
|
||||||
|
|
|
@ -779,7 +779,10 @@ static NSNumber *float_plus_one(NSNumber *cur)
|
||||||
|
|
||||||
- (void) yank: (id)sender
|
- (void) yank: (id)sender
|
||||||
{
|
{
|
||||||
[self insertText: killBuffer];
|
if ([killBuffer length] > 0)
|
||||||
|
{
|
||||||
|
[self insertText: killBuffer];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue