diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-03-31 08:11:45 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-03-31 08:11:45 -0700 |
commit | 860628c70a73064d53048fc095c430a0c3df6124 (patch) | |
tree | 40e3e2442eecf89beee317c4fbf39a9f21f2ae33 /html/edit | |
parent | daa214478a7c09a996aae7141054d12a481bb392 (diff) | |
download | mu-860628c70a73064d53048fc095c430a0c3df6124.tar.gz |
3808 - 'length' for duplex lists
Diffstat (limited to 'html/edit')
-rw-r--r-- | html/edit/003-shortcuts.mu.html | 8 | ||||
-rw-r--r-- | html/edit/012-editor-undo.mu.html | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/html/edit/003-shortcuts.mu.html b/html/edit/003-shortcuts.mu.html index dfac13b1..bbe7dd40 100644 --- a/html/edit/003-shortcuts.mu.html +++ b/html/edit/003-shortcuts.mu.html @@ -1738,7 +1738,7 @@ if ('onhashchange' in window) { <span id="L1676" class="LineNr">1676 </span> <span class="Delimiter">}</span> <span id="L1677" class="LineNr">1677 </span> <span class="Comment"># snip it out</span> <span id="L1678" class="LineNr">1678 </span> result:&:duplex-list:char <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L29'>next</a> start -<span id="L1679" class="LineNr">1679 </span> <a href='../065duplex_list.mu.html#L345'>remove-between</a> start, end +<span id="L1679" class="LineNr">1679 </span> <a href='../065duplex_list.mu.html#L357'>remove-between</a> start, end <span id="L1680" class="LineNr">1680 </span> <span class="Comment"># adjust cursor</span> <span id="L1681" class="LineNr">1681 </span> before-cursor <span class="Special"><-</span> copy start <span id="L1682" class="LineNr">1682 </span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">before-cursor:offset</span>, before-cursor @@ -1872,7 +1872,7 @@ if ('onhashchange' in window) { <span id="L1810" class="LineNr">1810 </span> <span class="Delimiter">}</span> <span id="L1811" class="LineNr">1811 </span> <span class="Comment"># snip it out</span> <span id="L1812" class="LineNr">1812 </span> result <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L29'>next</a> start -<span id="L1813" class="LineNr">1813 </span> <a href='../065duplex_list.mu.html#L345'>remove-between</a> start, end +<span id="L1813" class="LineNr">1813 </span> <a href='../065duplex_list.mu.html#L357'>remove-between</a> start, end <span id="L1814" class="LineNr">1814 </span>] <span id="L1815" class="LineNr">1815 </span> <span id="L1816" class="LineNr">1816 </span><span class="muScenario">scenario</span> editor-deletes-to-end-of-line-with-ctrl-k-2 [ @@ -2860,8 +2860,8 @@ if ('onhashchange' in window) { <span id="L2798" class="LineNr">2798 </span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">before-cursor:offset</span>, before-cursor <span id="L2799" class="LineNr">2799 </span> <span class="Comment"># keep one line in common with previous page</span> <span id="L2800" class="LineNr">2800 </span> <span class="Delimiter">{</span> -<span id="L2801" class="LineNr">2801 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L516'>last</a>:char <span class="Special"><-</span> get *before-cursor, <span class="Constant">value:offset</span> -<span id="L2802" class="LineNr">2802 </span> <span class="Conceal">¦</span> newline?:bool <span class="Special"><-</span> equal <a href='../065duplex_list.mu.html#L516'>last</a>, <span class="Constant">10/newline</span> +<span id="L2801" class="LineNr">2801 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L528'>last</a>:char <span class="Special"><-</span> get *before-cursor, <span class="Constant">value:offset</span> +<span id="L2802" class="LineNr">2802 </span> <span class="Conceal">¦</span> newline?:bool <span class="Special"><-</span> equal <a href='../065duplex_list.mu.html#L528'>last</a>, <span class="Constant">10/newline</span> <span id="L2803" class="LineNr">2803 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> newline?:bool <span id="L2804" class="LineNr">2804 </span> <span class="Conceal">¦</span> before-cursor <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L36'>prev</a> before-cursor <span id="L2805" class="LineNr">2805 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">before-cursor:offset</span>, before-cursor diff --git a/html/edit/012-editor-undo.mu.html b/html/edit/012-editor-undo.mu.html index b54e485e..5dc46385 100644 --- a/html/edit/012-editor-undo.mu.html +++ b/html/edit/012-editor-undo.mu.html @@ -280,7 +280,7 @@ if ('onhashchange' in window) { <span id="L217" class="LineNr"> 217 </span> <span class="Conceal">¦</span> <span class="Comment"># assert cursor-row/cursor-column/top-of-screen match after-row/after-column/after-top-of-screen</span> <span id="L218" class="LineNr"> 218 </span> <span class="Conceal">¦</span> before-cursor:&:duplex-list:char <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L36'>prev</a> start <span id="L219" class="LineNr"> 219 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">before-cursor:offset</span>, before-cursor -<span id="L220" class="LineNr"> 220 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L345'>remove-between</a> before-cursor, end +<span id="L220" class="LineNr"> 220 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L357'>remove-between</a> before-cursor, end <span id="L221" class="LineNr"> 221 </span> <span class="Conceal">¦</span> cursor-row <span class="Special"><-</span> get typing, <span class="Constant">before-row:offset</span> <span id="L222" class="LineNr"> 222 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-row:offset</span>, cursor-row <span id="L223" class="LineNr"> 223 </span> <span class="Conceal">¦</span> cursor-column <span class="Special"><-</span> get typing, <span class="Constant">before-column:offset</span> @@ -478,7 +478,7 @@ if ('onhashchange' in window) { <span id="L415" class="LineNr"> 415 </span> <span class="Conceal">¦</span> before-cursor <span class="Special"><-</span> get *editor, <span class="Constant">before-cursor:offset</span> <span id="L416" class="LineNr"> 416 </span> <span class="Conceal">¦</span> insert-from:&:duplex-list:char <span class="Special"><-</span> get typing, <span class="Constant">insert-from:offset</span> <span class="Comment"># ignore insert-to because it's already been spliced away</span> <span id="L417" class="LineNr"> 417 </span> <span class="Conceal">¦</span> <span class="Comment"># assert insert-to matches next(before-cursor)</span> -<span id="L418" class="LineNr"> 418 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L485'>insert-range</a> before-cursor, insert-from +<span id="L418" class="LineNr"> 418 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L497'>insert-range</a> before-cursor, insert-from <span id="L419" class="LineNr"> 419 </span> <span class="Conceal">¦</span> <span class="Comment"># assert cursor-row/cursor-column/top-of-screen match after-row/after-column/after-top-of-screen</span> <span id="L420" class="LineNr"> 420 </span> <span class="Conceal">¦</span> cursor-row <span class="Special"><-</span> get typing, <span class="Constant">after-row:offset</span> <span id="L421" class="LineNr"> 421 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-row:offset</span>, cursor-row @@ -1699,7 +1699,7 @@ if ('onhashchange' in window) { <span id="L1636" class="LineNr">1636 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> coalesce? <span id="L1637" class="LineNr">1637 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> deletion <span class="Special"><-</span> put deletion, <span class="Constant">delete-from:offset</span>, before-cursor <span id="L1638" class="LineNr">1638 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> backspaced-so-far:&:duplex-list:char <span class="Special"><-</span> get deletion, <span class="Constant">deleted-text:offset</span> -<span id="L1639" class="LineNr">1639 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L485'>insert-range</a> backspaced-cell, backspaced-so-far +<span id="L1639" class="LineNr">1639 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L497'>insert-range</a> backspaced-cell, backspaced-so-far <span id="L1640" class="LineNr">1640 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> deletion <span class="Special"><-</span> put deletion, <span class="Constant">deleted-text:offset</span>, backspaced-cell <span id="L1641" class="LineNr">1641 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> deletion <span class="Special"><-</span> put deletion, <span class="Constant">after-row:offset</span>, cursor-row <span id="L1642" class="LineNr">1642 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> deletion <span class="Special"><-</span> put deletion, <span class="Constant">after-column:offset</span>, cursor-column @@ -1723,8 +1723,8 @@ if ('onhashchange' in window) { <span id="L1660" class="LineNr">1660 </span> <span class="Conceal">¦</span> anchor:&:duplex-list:char <span class="Special"><-</span> get deletion, <span class="Constant">delete-from:offset</span> <span id="L1661" class="LineNr">1661 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> anchor <span id="L1662" class="LineNr">1662 </span> <span class="Conceal">¦</span> deleted:&:duplex-list:char <span class="Special"><-</span> get deletion, <span class="Constant">deleted-text:offset</span> -<span id="L1663" class="LineNr">1663 </span> <span class="Conceal">¦</span> old-cursor:&:duplex-list:char <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L516'>last</a> deleted -<span id="L1664" class="LineNr">1664 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L485'>insert-range</a> anchor, deleted +<span id="L1663" class="LineNr">1663 </span> <span class="Conceal">¦</span> old-cursor:&:duplex-list:char <span class="Special"><-</span> <a href='../065duplex_list.mu.html#L528'>last</a> deleted +<span id="L1664" class="LineNr">1664 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L497'>insert-range</a> anchor, deleted <span id="L1665" class="LineNr">1665 </span> <span class="Conceal">¦</span> <span class="Comment"># assert cursor-row/cursor-column/top-of-screen match after-row/after-column/after-top-of-screen</span> <span id="L1666" class="LineNr">1666 </span> <span class="Conceal">¦</span> before-cursor <span class="Special"><-</span> copy old-cursor <span id="L1667" class="LineNr">1667 </span> <span class="Conceal">¦</span> cursor-row <span class="Special"><-</span> get deletion, <span class="Constant">before-row:offset</span> @@ -1743,7 +1743,7 @@ if ('onhashchange' in window) { <span id="L1680" class="LineNr">1680 </span> <span class="Conceal">¦</span> start:&:duplex-list:char <span class="Special"><-</span> get deletion, <span class="Constant">delete-from:offset</span> <span id="L1681" class="LineNr">1681 </span> <span class="Conceal">¦</span> end:&:duplex-list:char <span class="Special"><-</span> get deletion, <span class="Constant">delete-until:offset</span> <span id="L1682" class="LineNr">1682 </span> <span class="Conceal">¦</span> data:&:duplex-list:char <span class="Special"><-</span> get *editor, <span class="Constant">data:offset</span> -<span id="L1683" class="LineNr">1683 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L345'>remove-between</a> start, end +<span id="L1683" class="LineNr">1683 </span> <span class="Conceal">¦</span> <a href='../065duplex_list.mu.html#L357'>remove-between</a> start, end <span id="L1684" class="LineNr">1684 </span> <span class="Conceal">¦</span> <span class="Comment"># assert cursor-row/cursor-column/top-of-screen match after-row/after-column/after-top-of-screen</span> <span id="L1685" class="LineNr">1685 </span> <span class="Conceal">¦</span> cursor-row <span class="Special"><-</span> get deletion, <span class="Constant">after-row:offset</span> <span id="L1686" class="LineNr">1686 </span> <span class="Conceal">¦</span> *editor <span class="Special"><-</span> put *editor, <span class="Constant">cursor-row:offset</span>, cursor-row |