aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-04-02 09:46:54 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-04-02 09:46:54 +0200
commit9ceac7ea426bf4aceb6aa260d10b83e3c7fe16d3 (patch)
tree3904e6552d495efe74f2c4c593fd1debf2bbe049
parent474365647cc7f65da26301b312e5fdee527c56bf (diff)
downloadvis-9ceac7ea426bf4aceb6aa260d10b83e3c7fe16d3.tar.gz
vis-9ceac7ea426bf4aceb6aa260d10b83e3c7fe16d3.tar.xz
Fix Debian package lintian warnings
https://mentors.debian.net/package/vis
-rw-r--r--main.c6
-rw-r--r--man/vis-clipboard.11
-rw-r--r--man/vis-digraph.12
-rw-r--r--man/vis-menu.11
-rw-r--r--man/vis.14
-rw-r--r--sam.c2
-rw-r--r--vis-text-objects.c2
7 files changed, 8 insertions, 10 deletions
diff --git a/main.c b/main.c
index 4bdb05c..c8fefaa 100644
--- a/main.c
+++ b/main.c
@@ -539,12 +539,12 @@ static const KeyAction vis_action[] = {
},
[VIS_ACTION_CURSOR_SEARCH_WORD_FORWARD] = {
"vis-motion-search-word-forward",
- VIS_HELP("Move cursor to next occurence of the word under cursor")
+ VIS_HELP("Move cursor to next occurrence of the word under cursor")
movement, { .i = VIS_MOVE_SEARCH_WORD_FORWARD }
},
[VIS_ACTION_CURSOR_SEARCH_WORD_BACKWARD] = {
"vis-motion-search-word-backward",
- VIS_HELP("Move cursor to previous occurence of the word under cursor")
+ VIS_HELP("Move cursor to previous occurrence of the word under cursor")
movement, { .i = VIS_MOVE_SEARCH_WORD_BACKWARD }
},
[VIS_ACTION_WINDOW_PAGE_UP] = {
@@ -779,7 +779,7 @@ static const KeyAction vis_action[] = {
},
[VIS_ACTION_OPERATOR_FILTER_FMT] = {
"vis-operator-filter-format",
- VIS_HELP("Formating operator, filter range through fmt(1)")
+ VIS_HELP("Formatting operator, filter range through fmt(1)")
operator_filter, { .s = "|fmt" }
},
[VIS_ACTION_COUNT] = {
diff --git a/man/vis-clipboard.1 b/man/vis-clipboard.1
index 82a14f5..e745588 100644
--- a/man/vis-clipboard.1
+++ b/man/vis-clipboard.1
@@ -97,4 +97,3 @@ vis-clipboard --paste | curl -d - https://www.nsa.gov/
.Xr vis 1 ,
.Xr xclip 1 ,
.Xr xsel 1
-.
diff --git a/man/vis-digraph.1 b/man/vis-digraph.1
index b55852f..e25f320 100644
--- a/man/vis-digraph.1
+++ b/man/vis-digraph.1
@@ -53,7 +53,7 @@ Digraph not recognised.
.It 2
Digraph is the beginning of an existing digraph, but does not correspond to a full digraph.
.It 3
-An error occured and digraph could not be read or printed.
+An error occurred and digraph could not be read or printed.
.El
.
.Sh SEE ALSO
diff --git a/man/vis-menu.1 b/man/vis-menu.1
index c1d2ab8..d0ca653 100644
--- a/man/vis-menu.1
+++ b/man/vis-menu.1
@@ -245,4 +245,3 @@ it was forked to become
.Nm vis-menu
to be distributed with
.Xr vis 1 .
-.
diff --git a/man/vis.1 b/man/vis.1
index caf7da9..1e00711 100644
--- a/man/vis.1
+++ b/man/vis.1
@@ -223,7 +223,7 @@ It uses what POSIX refers to as
.Dq Extended Regular Expressions
as described in
.Xr regex 7 .
-Additonally
+Additionally
.Li \[rs]n
and
.Li \[rs]t
@@ -1162,7 +1162,7 @@ keys.
.
In order to facilitate usage of non-latin keyboard layouts,
.Nm
-allows to map locale specific keys to their latin equivalents by means of the
+allows one to map locale specific keys to their latin equivalents by means of the
.Pp
.D1 Ic :langmap Ar locale-keys Ar latin-keys
.Pp
diff --git a/sam.c b/sam.c
index 105d7b2..20c58b8 100644
--- a/sam.c
+++ b/sam.c
@@ -300,7 +300,7 @@ static const OptionDef options[] = {
[OPTION_ESCDELAY] = {
{ "escdelay" },
VIS_OPTION_TYPE_NUMBER,
- VIS_HELP("Miliseconds to wait to distinguish <Escape> from terminal escape sequences")
+ VIS_HELP("Milliseconds to wait to distinguish <Escape> from terminal escape sequences")
},
[OPTION_AUTOINDENT] = {
{ "autoindent", "ai" },
diff --git a/vis-text-objects.c b/vis-text-objects.c
index af9aae2..467c101 100644
--- a/vis-text-objects.c
+++ b/vis-text-objects.c
@@ -61,7 +61,7 @@ static Filerange object_unpaired(Text *txt, size_t pos, char obj) {
text_iterator_byte_prev(&rit, NULL);
}
- /* if there is no previous occurence on the same line, advance starting position */
+ /* if there is no previous occurrence on the same line, advance starting position */
if (!before) {
while (text_iterator_byte_get(&it, &c) && c != '\n') {
if (c == obj) {