From 4b79c627c226bc64f271c31531c805cd6875c8ca Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 3 Apr 2015 11:42:50 -0700 Subject: 1009 --- cpp/.traces/deref_sidesteps_default_space | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 cpp/.traces/deref_sidesteps_default_space (limited to 'cpp/.traces/deref_sidesteps_default_space') diff --git a/cpp/.traces/deref_sidesteps_default_space b/cpp/.traces/deref_sidesteps_default_space new file mode 100644 index 00000000..9c7205ab --- /dev/null +++ b/cpp/.traces/deref_sidesteps_default_space @@ -0,0 +1,37 @@ +parse/0: instruction: 1 +parse/0: ingredient: {name: "34", value: 0, type: 0, properties: ["34": "literal"]} +parse/0: product: {name: "7", value: 0, type: 1, properties: ["7": "integer"]} +parse/0: instruction: 1 +parse/0: ingredient: {name: "5", value: 0, type: 0, properties: ["5": "literal"]} +parse/0: product: {name: "10", value: 0, type: 1, properties: ["10": "integer"]} +parse/0: instruction: 1 +parse/0: ingredient: {name: "10", value: 0, type: 0, properties: ["10": "literal"]} +parse/0: product: {name: "default-space", value: 0, type: 2-0, properties: ["default-space": "address":"space"]} +parse/0: instruction: 1 +parse/0: ingredient: {name: "7", value: 0, type: 0, properties: ["7": "literal"]} +parse/0: product: {name: "1", value: 0, type: 2-1, properties: ["1": "address":"integer"]} +parse/0: instruction: 1 +parse/0: ingredient: {name: "1", value: 0, type: 2-1, properties: ["1": "address":"integer", "deref": ]} +parse/0: product: {name: "8", value: 0, type: 1, properties: ["8": "integer", "raw": ]} +after-brace/0: recipe main +after-brace/0: copy ... +after-brace/0: copy ... +after-brace/0: copy ... +after-brace/0: copy ... +after-brace/0: copy ... +run/0: instruction main/0 +run/0: ingredient 0 is 34 +mem/0: storing 34 in location 7 +run/0: instruction main/1 +run/0: ingredient 0 is 5 +mem/0: storing 5 in location 10 +run/0: instruction main/2 +run/0: ingredient 0 is 10 +run/0: instruction main/3 +run/0: ingredient 0 is 7 +mem/0: storing 7 in location 12 +run/0: instruction main/4 +run/0: ingredient 0 is 1 +mem/0: location 12 is 7 +mem/0: location 7 is 34 +mem/0: storing 34 in location 8 -- cgit 1.4.1-2-gfad0 bmit' value='search'/>
path: root/commands/compose/edit.go
blob: e888350dcc44d602371120167a311c37089b14d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package compose

import (
	"errors"

	"git.sr.ht/~sircmpwn/aerc/widgets"
)

type Edit struct{}

func init() {
	register(Edit{})
}

func (_ Edit) Aliases() []string {
	return []string{"edit"}
}

func (_ Edit) Complete(aerc *widgets.Aerc, args []string) []string {
	return nil
}

func (_ Edit) Execute(aerc *widgets.Aerc, args []string) error {
	if len(args) != 1 {
		return errors.New("Usage: edit")
	}
	composer, _ := aerc.SelectedTab().(*widgets.Composer)
	composer.ShowTerminal()
	composer.FocusTerminal()
	return nil
}