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:
Mirko Viviani 2000-09-11 21:44:53 +00:00
parent be7706ee71
commit c4b7684011
2 changed files with 11 additions and 3 deletions

View file

@ -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

View file

@ -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];