~bacardi55/gtl-devel

gtl: Fixed getting date from selected entry v1 PROPOSED

-fab-: 1
 Fixed getting date from selected entry

 1 files changed, 1 insertions(+), 1 deletions(-)
#1464877 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~bacardi55/gtl-devel/patches/58554/mbox | git am -3
Learn more about email & git

[PATCH gtl] Fixed getting date from selected entry Export this patch

Sorry, messed up the subject in the last patch. Anyway this fixes a bug
in getting the right date of an entry you want to reply to.
---
 ui/tuishortcuts.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/tuishortcuts.go b/ui/tuishortcuts.go
index a92c0aa..effe177 100644
--- a/ui/tuishortcuts.go
+++ b/ui/tuishortcuts.go
@@ -729,7 +729,7 @@ func getSelectedEntryText() (*core.TlFeedItem, error) {
		return nil, fmt.Errorf("Couldn't parse selected entry - nb of line issue.")
	}

	date := strings.Split(lines[0], "-")
	date := strings.Split(lines[0], " - ")
	if len(date) < 2 {
		return nil, fmt.Errorf("Couldn't parse selected entry - date issue.")
	}
-- 
2.49.0
gtl/patches/.build.yml: SUCCESS in 32s

[Fixed getting date from selected entry][0] from [-fab-][1]

[0]: https://lists.sr.ht/~bacardi55/gtl-devel/patches/58554
[1]: mailto:fab@redterminal.org

✓ #1464877 SUCCESS gtl/patches/.build.yml https://builds.sr.ht/~bacardi55/job/1464877