Mercurial > vim
view src/proto/indent.pro @ 18045:af0b4ffab794 v8.1.2018
patch 8.1.2018: using freed memory when out of memory and displaying message
Commit: https://github.com/vim/vim/commit/e5fbd7393067c279860598ac8359d1617b1082b9
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 9 20:04:13 2019 +0200
patch 8.1.2018: using freed memory when out of memory and displaying message
Problem: Using freed memory when out of memory and displaying message.
Solution: Make a copy of the message first.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 09 Sep 2019 20:15:03 +0200 |
parents | 0f7ae8010787 |
children | c81370b3ede4 |
line wrap: on
line source
/* indent.c */ int cin_is_cinword(char_u *line); pos_T *find_start_comment(int ind_maxcomment); int cindent_on(void); void parse_cino(buf_T *buf); int get_c_indent(void); int get_expr_indent(void); int in_cinkeys(int keytyped, int when, int line_is_empty); int get_lisp_indent(void); void do_c_expr_indent(void); void fixthisline(int (*get_the_indent)(void)); void fix_indent(void); /* vim: set ft=c : */