summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2015-08-21 20:01:29 +0200
committerSilvan Jegen <s.jegen@gmail.com>2015-08-21 20:01:29 +0200
commit1bed4acf77cdcf2220ba9ffc55936ba71aa65458 (patch)
tree59f0cd38d9363e8e4bf243a41168689604ffef64
parent1e3eeb5bc1a935659a5e78f387d2c51e1343984f (diff)
Add one word before keyword
This was missed by mistake.
-rw-r--r--gwic.go4
1 files 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 {