From 1bed4acf77cdcf2220ba9ffc55936ba71aa65458 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Fri, 21 Aug 2015 20:01:29 +0200 Subject: Add one word before keyword This was missed by mistake. --- gwic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gwic.go b/gwic.go index 375a213..5cbbd93 100644 --- a/gwic.go +++ b/gwic.go @@ -21,9 +21,9 @@ func printWithContext(all []string, ind, ctxlen int) { slice = append(slice, "\""+all[ind]+"\"") if len(all[:ind]) < ctxlen { - slice = append(all[:ind-1], slice...) + slice = append(all[:ind], slice...) } else { - slice = append(all[ind-ctxlen:ind-1], slice...) + slice = append(all[ind-ctxlen:ind], slice...) } if len(all[ind:]) < ctxlen { -- cgit v1.2.3