On Thu, Jul 04, 2019 at 01:19:11PM +0200, Wojciech Gac wrote:
> Yes, it crashes either way. :w with other files works fine.

OK, then it must be the 'save>' method.

@lib/vip/draw.l defines in the end:

   (dm (save> 0 . This) (Win)
      (super)
      (view> This Win) )

   (dm (view> 0 . This) (Win)
      (off *Draw *Boxes)
      (symbols '(draw vip pico)
         (evCmd (load (fName (: file)))) )
      (mapc 'hv> *Boxes)
      (with Win
         (scratch (tmp "draw") *Draw) ) )

As normal saving (in super) works, it is probably the 'view>' method.

'view>' is also called if you press "v" (without save). So if you prepare a file
with e.g. with 'cat' or 'vim' with

   # VIP @lib/vip/draw.l
   (box 3 4 10 15)

then open it with 'vip' and press "v" to view the drawing, I suspect it crashes
too. Is that the case?

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to