Handle browse input

This commit is contained in:
lash 2023-04-12 07:29:23 +01:00
parent 68fef90684
commit aa0c2a283f
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,6 @@ func (en *Engine) Exec(input []byte, ctx context.Context) (bool, error) {
// - the template for the given node point is note available for retrieval using the resource.Resource implementer.
// - the supplied writer fails to process the writes.
func(en *Engine) WriteResult(w io.Writer) error {
//location, idx := en.st.Where()
r, err := en.vm.Render()
if err != nil {
return err

View File

@ -117,6 +117,8 @@ func long() error {
b = vm.NewLine(b, vm.MAP, []string{"longdata"}, nil, nil)
b = vm.NewLine(b, vm.HALT, nil, nil, nil)
b = vm.NewLine(b, vm.INCMP, []string{"0", "_"}, nil, nil)
b = vm.NewLine(b, vm.INCMP, []string{"00", ">"}, nil, nil)
b = vm.NewLine(b, vm.INCMP, []string{"11", "<"}, nil, nil)
tpl := `data
{{.longdata}}`