File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,15 @@ func acmd(e event.Cmd) {
150150 case p .Prefix ("Edit" ):
151151 editcmd (e .To [0 ], abs , p .Chop ())
152152 case p .Prefix ("Look" ):
153+ // Determine where this command is executed. If it's at the grid or column
154+ // labels, we run Look on all the text.Editors below that point. A column
155+ // runs Look on all planes under the column. A Grid does the same for
156+ // all columns.
157+ //
158+ // Use the track data structure to determine what Editor was last selected
159+ // and use that as the search parameter. Seperate the two cases so the
160+ // new feature is less likely to blow up the process if it has bugs--it's
161+ // less likely to be used anyway
153162 if k , from := KindOf (e .From ); k .List () {
154163 data := track .win .Rdsel ()
155164 VisitAll (from , func (p Named ) {
You can’t perform that action at this time.
0 commit comments