Skip to content

Commit

Permalink
Merge pull request #605 from Dyalog/604-value-error-on-link-in-functi…
Browse files Browse the repository at this point in the history
…on-setflags

Fix #604
  • Loading branch information
mkromberg authored Oct 12, 2023
2 parents 5d16be6 + e8f3142 commit 01555a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions StartupSession/Link/SetFlags.aplf
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@
:Hold '⎕SE.Link.Links'
NOHOLD:
(ns leaf)U.SplitNs name
:If 0linksU.GetLinks
:If 0=linksU.GetLinks
linklinks U.LookupRef{0=ns: ns}container
:OrIf 0=link
0
:EndIf
(0=link)0

:If link.singlefile
0msg,' (flags not recorded for single-file links)'
:EndIf
Expand All @@ -68,7 +70,7 @@ NOHOLD:
fullname(containerns,(0=ns)/'⎕THIS'),'.',leaf
relname(1+link.ns)fullname
:If (flagarray)<i({0:: flagarray.Name})relname
flagarray,flags⎕NS ''
flagarray,flags⎕NS''
flags.Namerelname
:EndIf
flagsiflagarray
Expand Down

0 comments on commit 01555a1

Please sign in to comment.