shabiel / VPE

Victory Programmer Environment (used in M code Development; esp. for VISTA)
Other
11 stars 5 forks source link

Greg: ESC-R on labels/lines on 2nd wrapped line or further fail #43

Closed shabiel closed 5 years ago

shabiel commented 5 years ago

I found, on line below, that trying to go to 6^VADPT or PID^VADPT with esc-R rang the bell. I suspect it like the esc-G issue I found on accessing globals on wrapped lines. My guess is the cursor tracking for the ^ gets off and it isn't parsing it correctly.

> 49       .S TECH=$P($G(^VA(200,+$P(^PSRX(RX,0),"^",16),0)),"^"),QTY=$P(^PSRX(R
>          X,0),"^",7),PHYS=$S($D(^VA(200,+$P(^PSRX(RX,0),"^",4),0)):$P(^(0),"^"
>          ),1:"UKN") D 6^VADPT,PID^VADPT S SSNPN=""
shabiel commented 5 years ago

More from Greg:

Use ..VRR, display the ^DICR rtn. On line 13 put the cursor on the caret in AUDIT^DIET and use esc-R and it just rings the bell. Same thing on line 26 on the label of D RESTORE at the end of the line. It works as expected on D RESTORE on line 24. If you try to use esc-R on the D SAVE that wraps on line 26 it bombs.

shabiel commented 5 years ago

More from Greg:

Esc-R of line 90 for D TRMOD(.... also bombs (again, the wrap thing). I thought it might not since it is on the original line and thought the parser would stop at the ( and get it.

gkreis commented 5 years ago

This also depends on your terminal settings. If the lines don't wrap because you are using a screen width much wider than 80, then you may not see the issue.