acme: scroll a directory window when navigating if:

- the cursor is on the last line
        - the navigation would put the cursor over the tag of the following text

R=rsc
CC=smckean83
https://codereview.appspot.com/15280045
This commit is contained in:
Rob Pike 2013-10-22 16:47:48 -07:00
parent 075c3bdc54
commit 5a69e405fc
3 changed files with 29 additions and 4 deletions

View file

@ -1,4 +1,4 @@
addrelem='((#?[0-9]+)|(/[A-Za-z0-9_\^]+/?)|[.$])'
addr=:($addrelem([,;+\-]$addrelem)*)
twocolonaddr = :([0-9]+)[:.]([0-9]+)
twocolonaddr = ([0-9]+)[:.]([0-9]+)