vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 0983234fa7c7b0426adaf5d146197fa224dabe38 parent 65c9937771a2e99da784823b77d163c55c727629 Author: Ryan Chipman <rchipman@mit.edu> Date: Tue, 23 Jun 2015 11:16:08 -0400 fixed some typos in comments Diffstat:
| M | text.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/text.c b/text.c @@ -70,12 +70,12 @@ typedef struct { size_t off; /* offset into the piece in bytes */ } Location; -/* A Span holds a certain range of pieces. Changes to the document are allways +/* A Span holds a certain range of pieces. Changes to the document are always * performed by swapping out an existing span with a new one. */ typedef struct { Piece *start, *end; /* start/end of the span */ - size_t len; /* the sum of the lenghts of the pieces which form this span */ + size_t len; /* the sum of the lengths of the pieces which form this span */ } Span; /* A Change keeps all needed information to redo/undo an insertion/deletion. */