ZTree.com  | ZEN  | About...  

 Index   Back

[Bug] strange value delay when %#ZTLine% is used   [Zeta]

By: Hartmut Schneider     Germany  
Date: Jan 08,2014 at 13:40
In Response to: [Zeta] v2.4.140 Now Available (Kim Henkel)

> Added - %#ZTLine% - Viewer top line number, or selected line if Line mode active

Thanks for that. I'm currently changing my Editor macros to using #ZTLine
(e.g. VS.exe %1 -# %#ZTLine% )

However, there's a strange value delay;  reproduceable here as follows:

Have e.g. BETA.TXT open in Viewer, at various line positions within the text.
goto eXecute window from within Viewer, launch command echo %#ZTLine%
and check the line number the command has echoed.

It seems delayed by 1 launch!

Change text or Line position, then execute, e.g. in a macro
     x,CTRL_BKSP,echo %#ZTLine%,RET
The first launch  still echoes the old line number,
but subsequent launches do echo the correct line number.

Strange...

However, if you use set #ZTLine instead of echo %#ZTLine% , there's no delay.
Why is it so?

BTW, switching Line mode On or Off seems to make no difference.

Can I somehow avoid this 'value delay' in the Editor macro(s) ?

Best regards,
Hartmut

1,167 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 44 users online (0 registered, 44 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 12:23 pm UTC  |  Hits:62,366,169  (18,566 Today )
RSS Feed