diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2015-08-21 20:01:29 +0200 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2015-08-21 20:01:29 +0200 |
commit | 1bed4acf77cdcf2220ba9ffc55936ba71aa65458 (patch) | |
tree | 59f0cd38d9363e8e4bf243a41168689604ffef64 | |
parent | 1e3eeb5bc1a935659a5e78f387d2c51e1343984f (diff) |
Add one word before keyword
This was missed by mistake.
-rw-r--r-- | gwic.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |