<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Still, pressing End in the latest line skips one character, but this is not a regression ...</p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div>
<div class="x__rp_T4" id="x_Item.MessagePartBody">
<div class="x__rp_U4 x_ms-font-weight-regular x_ms-font-color-neutralDark x_rpHighlightAllClass x_rpHighlightBodyClass" id="x_Item.MessageUniqueBody" style="font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont">
<div dir="ltr">
<div id="x_divtagdefaultwrapper"><font face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">
<div id="x_Signature">
<div style="margin:0px"><font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont">
<div><font size="3" color="black"><span style="font-size:12pt"><a href="http://www.hpi.de/" target="_blank" rel="noopener noreferrer" id="LPNoLP"><font size="2"><span id="LPlnk909538"><font color="#757B80"></font></span></font></a></span></font></div>
</font></div>
</div>
</font></div>
</div>
</div>
</div>
</div>
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von commits@source.squeak.org <commits@source.squeak.org><br>
<b>Gesendet:</b> Samstag, 5. September 2020 01:20:57<br>
<b>An:</b> squeak-dev@lists.squeakfoundation.org<br>
<b>Betreff:</b> [squeak-dev] The Inbox: ST80-ct.258.mcz</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Christoph Thiede uploaded a new version of ST80 to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/ST80-ct.258.mcz">http://source.squeak.org/inbox/ST80-ct.258.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: ST80-ct.258<br>
Author: ct<br>
Time: 5 September 2020, 1:20:54.682421 am<br>
UUID: db2a2f67-e818-ea46-b2f6-f4a9950577db<br>
Ancestors: ST80-mt.257<br>
<br>
Fixes home and end keys in MVC editors if the text is empty<br>
<br>
=============== Diff against ST80-mt.257 ===============<br>
<br>
Item was changed:<br>
  ----- Method: ParagraphEditor>>cursorEnd: (in category 'nonediting/nontyping keys') -----<br>
  cursorEnd: characterStream <br>
  <br>
         "Private - Move cursor end of current line."<br>
         | string |<br>
         self closeTypeIn: characterStream.<br>
         string := paragraph text string.<br>
         self<br>
                 moveCursor:<br>
                         [:position | Preferences wordStyleCursorMovement<br>
+                                ifTrue: [<br>
+                                        paragraph lines <br>
+                                                at: (paragraph lineIndexOfCharacterIndex: position)<br>
+                                                ifPresent: [:targetLine | targetLine last + (targetLine last = string size) asBit]<br>
+                                                ifAbsent: [position]]<br>
+                                ifFalse: [<br>
-                                ifTrue:[| targetLine |<br>
-                                        targetLine := paragraph lines at:(paragraph lineIndexOfCharacterIndex: position).<br>
-                                        targetLine = paragraph lines last<br>
-                                                ifTrue:[targetLine last + 1]<br>
-                                                ifFalse:[targetLine last]]<br>
-                                ifFalse:[<br>
                                         string<br>
                                                 indexOfAnyOf: CharacterSet crlf<br>
                                                 startingAt: position<br>
                                                 ifAbsent:[string size + 1]]]<br>
                 forward: true<br>
                 specialBlock:[:dummy | string size + 1].<br>
         ^true!<br>
<br>
Item was changed:<br>
  ----- Method: ParagraphEditor>>cursorHome: (in category 'nonediting/nontyping keys') -----<br>
  cursorHome: characterStream <br>
  <br>
         "Private - Move cursor from position in current line to beginning of<br>
         current line. If control key is pressed put cursor at beginning of text"<br>
  <br>
         | string |<br>
  <br>
         string := paragraph text string.<br>
         self<br>
+                moveCursor: [:position | Preferences wordStyleCursorMovement<br>
+                                ifTrue: [<br>
+                                        paragraph lines<br>
+                                                at: (paragraph lineIndexOfCharacterIndex: position)<br>
+                                                ifPresent: [:targetLine | targetLine first]                                                                                                       ifAbsent: [position]]<br>
-                moveCursor: [ :position | Preferences wordStyleCursorMovement<br>
-                                ifTrue:[<br>
-                                        (paragraph lines at:(paragraph lineIndexOfCharacterIndex: position)) first]<br>
                                 ifFalse:[<br>
                                         (string<br>
                                                 lastIndexOfAnyOf: CharacterSet crlf<br>
                                                 startingAt: position - 1) + 1]]<br>
                 forward: false<br>
                 specialBlock: [:dummy | 1].<br>
         ^true!<br>
<br>
<br>
</div>
</span></font>
</body>
</html>