mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
change from rob -- handle ^U like in rio, acme
This commit is contained in:
parent
422761f81e
commit
17f131946f
1 changed files with 4 additions and 0 deletions
|
@ -361,6 +361,10 @@ ctlw(Rasp *r, long o, long p)
|
||||||
long
|
long
|
||||||
ctlu(Rasp *r, long o, long p)
|
ctlu(Rasp *r, long o, long p)
|
||||||
{
|
{
|
||||||
|
if(--p < o)
|
||||||
|
return o;
|
||||||
|
if(raspc(r, p)=='\n')
|
||||||
|
return p;
|
||||||
for(; p-1>=o && raspc(r, p-1)!='\n'; --p)
|
for(; p-1>=o && raspc(r, p-1)!='\n'; --p)
|
||||||
;
|
;
|
||||||
return p>=o? p : o;
|
return p>=o? p : o;
|
||||||
|
|
Loading…
Reference in a new issue