summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorManinder Singh2015-05-25 13:46:36 +0200
committerDenys Vlasenko2015-05-25 13:46:36 +0200
commit97c6491b4edf4bc9db293533ae0c3a81c4ef07f7 (patch)
tree7ac99422b82e761628c96855a57375f620f72997 /editors
parentc4603fb09aa2ec06bc8c0ad51b69fe7995a8ea17 (diff)
downloadbusybox-97c6491b4edf4bc9db293533ae0c3a81c4ef07f7.zip
busybox-97c6491b4edf4bc9db293533ae0c3a81c4ef07f7.tar.gz
typo fixes
Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r--editors/diff.c2
-rw-r--r--editors/vi.c14
2 files changed, 8 insertions, 8 deletions
diff --git a/editors/diff.c b/editors/diff.c
index c3ad31b..cf14b1d 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -363,7 +363,7 @@ static void stone(const int *a, int n, const int *b, int *J, int pref)
}
struct line {
- /* 'serial' is not used in the begining, so we reuse it
+ /* 'serial' is not used in the beginning, so we reuse it
* to store line offsets, thus reducing memory pressure
*/
union {
diff --git a/editors/vi.c b/editors/vi.c
index 2e4f7fc..6ce513c 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -501,7 +501,7 @@ static char *prev_line(char *); // return pointer to prev line B-o-l
static char *next_line(char *); // return pointer to next line B-o-l
static char *end_screen(void); // get pointer to last char on screen
static int count_lines(char *, char *); // count line from start to stop
-static char *find_line(int); // find begining of line #li
+static char *find_line(int); // find beginning of line #li
static char *move_to_col(char *, int); // move "p" to column l
static void dot_left(void); // move dot left- dont leave line
static void dot_right(void); // move dot right- dont leave line
@@ -1684,10 +1684,10 @@ static char *dollar_line(char *p) // return pointer to just before NL line
static char *prev_line(char *p) // return pointer first char prev line
{
- p = begin_line(p); // goto begining of cur line
+ p = begin_line(p); // goto beginning of cur line
if (p > text && p[-1] == '\n')
p--; // step to prev line
- p = begin_line(p); // goto begining of prev line
+ p = begin_line(p); // goto beginning of prev line
return p;
}
@@ -1735,7 +1735,7 @@ static int count_lines(char *start, char *stop)
return cnt;
}
-static char *find_line(int li) // find begining of line #li
+static char *find_line(int li) // find beginning of line #li
{
char *q;
@@ -3357,7 +3357,7 @@ static void refresh(int full_screen)
tp = t + 1;
}
- // see if there are any changes between vitual screen and out_buf
+ // see if there are any changes between virtual screen and out_buf
changed = FALSE; // assume no change
cs = 0;
ce = columns - 1;
@@ -3394,7 +3394,7 @@ static void refresh(int full_screen)
if (cs < 0) cs = 0;
if (ce > columns - 1) ce = columns - 1;
if (cs > ce) { cs = 0; ce = columns - 1; }
- // is there a change between vitual screen and out_buf
+ // is there a change between virtual screen and out_buf
if (changed) {
// copy changed part of buffer to virtual screen
memcpy(sp+cs, out_buf+cs, ce-cs+1);
@@ -3844,7 +3844,7 @@ static void do_cmd(int c)
}
break;
#endif /* FEATURE_VI_SEARCH */
- case '0': // 0- goto begining of line
+ case '0': // 0- goto beginning of line
case '1': // 1-
case '2': // 2-
case '3': // 3-