summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-27 20:58:37 +0100
committerBram Moolenaar <Bram@vim.org>2020-03-27 20:58:37 +0100
commit14285cb801c5ba965fdb89c44e8c27d912edfe4b (patch)
tree0fc6f519aab10916524e1943918115903c68924f /src
parent2d9d409ad4fab1ae7ceaecc0ef0e9b511d868374 (diff)
patch 8.2.0464: typos and other small problemsv8.2.0464
Problem: Typos and other small problems. Solution: Fix the typos. Add missing files to the distribution.
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c3
-rw-r--r--src/drawline.c3
-rw-r--r--src/gui_gtk_x11.c2
-rw-r--r--src/os_unixx.h12
-rw-r--r--src/proto/popupwin.pro2
-rw-r--r--src/version.c2
6 files changed, 16 insertions, 8 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 2dcbae2aea..cec33b0a45 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2014,7 +2014,10 @@ buflist_new(
apply_autocmds(EVENT_BUFWIPEOUT, NULL, NULL, FALSE, curbuf);
#ifdef FEAT_EVAL
if (aborting()) // autocmds may abort script processing
+ {
+ vim_free(ffname);
return NULL;
+ }
#endif
if (buf == curbuf)
{
diff --git a/src/drawline.c b/src/drawline.c
index 9f943e03aa..1544dae284 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -270,7 +270,6 @@ win_line(
int tocol = MAXCOL; // end of inverting
int fromcol_prev = -2; // start of inverting after cursor
int noinvcur = FALSE; // don't invert the cursor
- pos_T *top, *bot;
int lnum_in_visual_area = FALSE;
pos_T pos;
long v;
@@ -535,6 +534,8 @@ win_line(
// handle Visual active in this window
if (VIsual_active && wp->w_buffer == curwin->w_buffer)
{
+ pos_T *top, *bot;
+
if (LTOREQ_POS(curwin->w_cursor, VIsual))
{
// Visual is after curwin->w_cursor
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index ef930a5664..ea43c93850 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -4743,6 +4743,8 @@ is_cjk_font(PangoFontDescription *font_desc)
PangoCoverage *coverage;
gunichar uc;
+ // Valgrind reports a leak for pango_language_from_string(), but the
+ // documentation says "This is owned by Pango and should not be freed".
coverage = pango_font_get_coverage(
font, pango_language_from_string(cjk_langs[i]));
diff --git a/src/os_unixx.h b/src/os_unixx.h
index 8a456c2e23..3d1927bed6 100644
--- a/src/os_unixx.h
+++ b/src/os_unixx.h
@@ -47,13 +47,13 @@
#endif // !USE_SYSTEM
#ifdef HAVE_STROPTS_H
-#ifdef sinix
-#define buf_T __system_buf_t__
-#endif
+# ifdef sinix
+# define buf_T __system_buf_t__
+# endif
# include <stropts.h>
-#ifdef sinix
-#undef buf_T
-#endif
+# ifdef sinix
+# undef buf_T
+# endif
#endif
#ifdef HAVE_STRING_H
diff --git a/src/proto/popupwin.pro b/src/proto/popupwin.pro
index 7608f32a26..96b21b643e 100644
--- a/src/proto/popupwin.pro
+++ b/src/proto/popupwin.pro
@@ -33,6 +33,7 @@ void f_popup_hide(typval_T *argvars, typval_T *rettv);
void popup_show(win_T *wp);
void f_popup_show(typval_T *argvars, typval_T *rettv);
void f_popup_settext(typval_T *argvars, typval_T *rettv);
+int error_if_popup_window(int also_with_term);
void popup_close(int id);
void popup_close_tabpage(tabpage_T *tp, int id);
void close_all_popups(void);
@@ -41,7 +42,6 @@ void f_popup_setoptions(typval_T *argvars, typval_T *rettv);
void f_popup_getpos(typval_T *argvars, typval_T *rettv);
void f_popup_locate(typval_T *argvars, typval_T *rettv);
void f_popup_getoptions(typval_T *argvars, typval_T *rettv);
-int error_if_popup_window(int also_with_term);
int error_if_term_popup_window(void);
void popup_reset_handled(int handled_flag);
win_T *find_next_popup(int lowest, int handled_flag);
diff --git a/src/version.c b/src/version.c
index 752044cfda..468443abb7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 464,
+/**/
463,
/**/
462,