mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
2000-09-11 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* Source/NSText.m ([NSText -moveLeft:sender]): deselect text that starts at the beginning of the line. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7472 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
be7706ee71
commit
c4b7684011
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2000-09-11 Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
|
||||
* Source/NSText.m ([NSText -moveLeft:sender]): deselect text that
|
||||
starts at the beginning of the line.
|
||||
|
||||
2000-09-11 Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
|
||||
* Source/NSBrowser.m ([NSBrowser -_performLoadOfColumn:]): set
|
||||
|
|
|
@ -2540,11 +2540,14 @@ static NSNotificationCenter *nc;
|
|||
{
|
||||
NSRange newSelectedRange;
|
||||
|
||||
/* Do nothing if we are at beginning of text */
|
||||
if (_selected_range.location == 0)
|
||||
/* Do nothing if we are at beginning of text with no selection */
|
||||
if (_selected_range.location == 0 && _selected_range.length == 0)
|
||||
return;
|
||||
|
||||
newSelectedRange.location = _selected_range.location - 1;
|
||||
if (_selected_range.location == 0)
|
||||
newSelectedRange.location = 0;
|
||||
else
|
||||
newSelectedRange.location = _selected_range.location - 1;
|
||||
newSelectedRange.length = 0;
|
||||
|
||||
[self setSelectedRange: newSelectedRange];
|
||||
|
|
Loading…
Reference in a new issue