mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +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
|
||||
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)
|
||||
;
|
||||
return p>=o? p : o;
|
||||
|
|
Loading…
Reference in a new issue