vim-patch:8.2.0464: typos and other small problems

Problem:    Typos and other small problems.
Solution:   Fix the typos.  Add missing file to distribution.
2d9d409ad4
This commit is contained in:
Jan Edmund Lazo
2020-03-27 19:29:36 -04:00
parent bc84cf2585
commit b8ddca6554
2 changed files with 3 additions and 1 deletions

View File

@@ -1750,6 +1750,7 @@ buf_T * buflist_new(char_u *ffname, char_u *sfname, linenr_T lnum, int flags)
apply_autocmds(EVENT_BUFWIPEOUT, NULL, NULL, false, curbuf); apply_autocmds(EVENT_BUFWIPEOUT, NULL, NULL, false, curbuf);
} }
if (aborting()) { // autocmds may abort script processing if (aborting()) { // autocmds may abort script processing
xfree(ffname);
return NULL; return NULL;
} }
if (buf == curbuf) { if (buf == curbuf) {

View File

@@ -2220,7 +2220,6 @@ win_line (
int tocol = MAXCOL; // end of inverting int tocol = MAXCOL; // end of inverting
int fromcol_prev = -2; // start of inverting after cursor int fromcol_prev = -2; // start of inverting after cursor
bool noinvcur = false; // don't invert the cursor bool noinvcur = false; // don't invert the cursor
pos_T *top, *bot;
int lnum_in_visual_area = false; int lnum_in_visual_area = false;
pos_T pos; pos_T pos;
long v; long v;
@@ -2420,6 +2419,8 @@ win_line (
// handle Visual active in this window // handle Visual active in this window
if (VIsual_active && wp->w_buffer == curwin->w_buffer) { if (VIsual_active && wp->w_buffer == curwin->w_buffer) {
pos_T *top, *bot;
if (ltoreq(curwin->w_cursor, VIsual)) { if (ltoreq(curwin->w_cursor, VIsual)) {
// Visual is after curwin->w_cursor // Visual is after curwin->w_cursor
top = &curwin->w_cursor; top = &curwin->w_cursor;