Commit Diff


commit - d9051b6523c43df73a1c0bda0c6becac7e41c2a9
commit + 2815e3a0bd30fa577f03de5af1a60086ee286e4a
blob - 565247aeb5f7f396f2664aaaa6b41e9da0df9ce5
blob + e4bc7b3d2e631dee9a0c798027d242987077cf58
--- ChangeLog
+++ ChangeLog
@@ -4,7 +4,7 @@
 
 2024-06-28  Omar Polo  <op@omarpolo.com>
 
-	* parser.c (parser_append): don't error on empty documets
+	* parser.c (parser_append): don't error on empty documents
 
 2024-06-27  Thomas Adam  <thomas.adam22@gmail.com>
 
@@ -660,7 +660,7 @@
 
 	* cmd.c (cmd_previous_button): stay on the line in next-button if there is no next link, and the same for previous-button
 
-	* telescope.c (handle_imsg_buf): "humanize" byte progress (i.e. trasform XYZ bytes to something readable)
+	* telescope.c (handle_imsg_buf): "humanize" byte progress (i.e. transform XYZ bytes to something readable)
 
 2021-06-22  Omar Polo  <op@omarpolo.com>
 
blob - 6e380701ea980479acc9001ab62c34dc5808ba29
blob + da197659a72d7253ebdf6270db7cfe595f1da4b2
--- README.md
+++ README.md
@@ -43,7 +43,7 @@ but I'd like to finish it into a complete Gemini brows
    security risks of possible bugs.
  - Fast: it features a modern, fast, event-based asynchronous I/O
    model.
- - Cooperation: re-use existing conventions to allow inter-operations
+ - Cooperation: reuse existing conventions to allow inter-operations
    and easy migrations from/to other clients.
 
 
@@ -72,7 +72,7 @@ At the moment there is no UI for out-of-band verificat
 
 Telescope depends on ncursesw, libtls or libretls, yacc/bison and
 pkg-config.  [libgrapheme][libgrapheme] is an optional dependency:
-there's a bundled copy but it's reccomended to install it with a package
+there's a bundled copy but it's recommended to install it with a package
 manager if available.
 
 To build execute:
blob - 42bbc8f817d418c422346de15f12da1aae55e947
blob + 79390c0a1b5b811715d1b1297e43d52486d7c3bc
--- certs.c
+++ certs.c
@@ -75,7 +75,7 @@ push_identity(const char *n)
 			return (0);
 	}
 
-	/* id_cap is initilized to 8 in certs_init() */
+	/* id_cap is initialized to 8 in certs_init() */
 	if (id_len >= id_cap - 1) {
 		newcap = id_cap + 8;
 		t = recallocarray(identities, id_cap, newcap,
blob - af7750a2238f1de720ab98665c30b017ac37c489
blob + 13d396dfeed99043bfa8332cda07335bcb34350b
--- compat/fmt_scaled.c
+++ compat/fmt_scaled.c
@@ -182,7 +182,7 @@ scan_scaled(char *scaled, long long *result)
 			/* scale whole part */
 			whole *= scale_fact;
 
-			/* truncate fpart so it does't overflow.
+			/* truncate fpart so it doesn't overflow.
 			 * then scale fractional part.
 			 */
 			while (fpart >= LLONG_MAX / scale_fact) {
blob - d44e546e4ac97c04db35a0d878c20262c8b287d6
blob + 452f03c7c02b7ad228fbe88c2363acb974ead7c8
--- contrib/xdg-migrate.sh
+++ contrib/xdg-migrate.sh
@@ -29,7 +29,7 @@ done
 printf "\
 WARNING: the old ~/.telescope directory will be removed.
 
-Every file/directory other than the followings has not been copyied:
+Every file/directory other than the following has not been copied:
     - config
     - bookmarks.gmi
     - known_hosts
blob - d9c0cc7214e6bf5baa918485f9df02e06318a20e
blob + 1b8d2304bb0523b0ce7be6fc2efb7416f8f04c18
--- mcache.c
+++ mcache.c
@@ -69,13 +69,13 @@ clean_old_entries(int fd, int ev, void *data)
 {
 	struct mcache_entry	*e;
 	unsigned int		 i;
-	time_t			 treshold;
+	time_t			 threshold;
 
 	/* delete pages older than an hour */
-	treshold = time(NULL) - 60 * 60;
+	threshold = time(NULL) - 60 * 60;
 
 	for (e = ohash_first(&h, &i); e != NULL; e = ohash_next(&h, &i))
-		if (e->ts < treshold)
+		if (e->ts < threshold)
 			mcache_free_entry(e->url);
 
 	timeout = ev_timer(&tv, clean_old_entries, NULL);
blob - 4f3a0398f45f93f1950f0e017d383e69a0d77965
blob + 2bcc80a8d19193de6adcf8644d8913c4c3339ec5
--- telescope.1
+++ telescope.1
@@ -170,7 +170,7 @@ All text is assumed to be encoded in UTF-8 (superset o
 User-entered URLs, given as argument on the command line or entered
 with
 .Ic load-url ,
-by default are intepreted with a simple heuristic:
+by default are interpreted with a simple heuristic:
 .Bl -bullet -compact
 .It
 if it's a proper absolute URL then use it as-is,
@@ -369,7 +369,7 @@ Defaults to
 .Dq about:new .
 .It Ic load-url-use-heuristic
 .Pq boolean
-If false, don't use euristics to resolve the URLs.
+If false, don't use heuristics to resolve the URLs.
 Non-absolute URLs given as command line argument will be resolved as
 file system paths,
 .Ic load-url
blob - 0152ef4bdc9fb43ce9bad789accab285430b9c26
blob + f4317da5b1180f1a70852db4ec5e016213c36217
--- ui.c
+++ ui.c
@@ -629,7 +629,7 @@ redraw_tabline(void)
 
 	x = 0;
 
-	/* unused, but setted by a getyx */
+	/* unused, but set by a getyx */
 	(void)y;
 
 	tabwidth = sizeof(buf)+1;
blob - cda447a43be8dff19b30828bb8fc33e844859a0f
blob + 1433aacce3f0e55b5875538c3ce4bd8fcea4e490
--- utf8.c
+++ utf8.c
@@ -238,7 +238,7 @@ utf8_prev_cp(const char *start, const char *base)
 
 /*
  * XXX: This is not correct.  There are codepoints classified as
- * "emoji", but these can be joined toghether to form more complex
+ * "emoji", but these can be joined together to form more complex
  * emoji.  There is an official list of what these valid combinations
  * are, but it would require a costly lookup (a trie can be used to
  * reduce the times, but...).  The following approach is conceptually