1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Get --module=[modname] working again (broke when position config validation was added)

This commit is contained in:
Chris Cummer
2019-07-06 01:55:54 -07:00
parent 2b2cdf912b
commit 2da3344612
5 changed files with 19 additions and 9 deletions

View File

@@ -51,8 +51,6 @@ func (widget *Widget) Refresh() {
widget.Render()
}
/* -------------------- Unexported Functions -------------------- */
func (widget *Widget) Render() {
if widget.result == nil {
return
@@ -63,6 +61,8 @@ func (widget *Widget) Render() {
widget.Redraw(str, widget.contentFrom(widget.result), false)
}
/* -------------------- Unexported Functions -------------------- */
func (widget *Widget) openItem() {
sel := widget.GetSelected()
if sel >= 0 && widget.result != nil && sel < len(widget.result.Issues) {