summaryrefslogtreecommitdiff
path: root/ui/buffers.go
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtz.pm>2021-09-11 19:29:20 +0200
committerHubert Hirtz <hubert@hirtz.pm>2021-09-11 19:29:20 +0200
commit75349a86ba872e8bd88f6a7ce625b2b6ca81c893 (patch)
treecdb89e1f4b6fcf55b6e026d1a22dca6a20a2ee75 /ui/buffers.go
parentFix line wrapping not working on history (diff)
Fix typos
Diffstat (limited to 'ui/buffers.go')
-rw-r--r--ui/buffers.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/buffers.go b/ui/buffers.go
index a24051e..cb12c1e 100644
--- a/ui/buffers.go
+++ b/ui/buffers.go
@@ -93,12 +93,12 @@ func (l *Line) NewLines(width int) []int {
x := 0
for i := 1; i < len(l.splitPoints); i++ {
// Iterate through the split points 2 by 2. Split points are placed at
- // the begining of whitespace (see IsSplitRune) and at the begining of
- // non-whitespace. Iterating on 2 points each time, sp1 and sp2, allow
- // consideration of a "word" of (non-)whitespace.
+ // the beginning of whitespace (see IsSplitRune) and at the beginning
+ // of non-whitespace. Iterating on 2 points each time, sp1 and sp2,
+ // allows consideration of a "word" of (non-)whitespace.
// Split points have the index I in the string and the width X of the
// screen. Finally, the Split field is set to true if the split point
- // is at the begining of a whitespace.
+ // is at the beginning of a whitespace.
// Below, "row" means a line in the terminal, while "line" means (l *Line).