Mercurial > vim
comparison src/option.c @ 27128:164d59ddd48a v8.2.4093
patch 8.2.4093: cached breakindent values not initialized properly
Commit: https://github.com/vim/vim/commit/c53b467473160b5cfce77277fbae414bf43e66ce
Author: Christian Brabandt <cb@256bit.org>
Date: Sat Jan 15 10:01:05 2022 +0000
patch 8.2.4093: cached breakindent values not initialized properly
Problem: Cached breakindent values not initialized properly.
Solution: Initialize and cache formatlistpat. (Christian Brabandt,
closes #9526, closes #9512)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Jan 2022 11:15:03 +0100 |
parents | 268f6a3511df |
children | d2471d710ec9 |
comparison
equal
deleted
inserted
replaced
27127:33918a28ec46 | 27128:164d59ddd48a |
---|---|
7051 { | 7051 { |
7052 return buf->b_bkc_flags ? buf->b_bkc_flags : bkc_flags; | 7052 return buf->b_bkc_flags ? buf->b_bkc_flags : bkc_flags; |
7053 } | 7053 } |
7054 | 7054 |
7055 /* | 7055 /* |
7056 * Get the local or global value of 'formatlistpat'. | |
7057 */ | |
7058 char_u * | |
7059 get_flp_value(buf_T *buf) | |
7060 { | |
7061 return buf->b_p_flp ? buf->b_p_flp : p_flp; | |
7062 if (buf->b_p_flp == NULL || *buf->b_p_flp == NUL) | |
7063 return p_flp; | |
7064 return buf->b_p_flp; | |
7065 } | |
7066 | |
7067 /* | |
7056 * Get the local or global value of the 'virtualedit' flags. | 7068 * Get the local or global value of the 'virtualedit' flags. |
7057 */ | 7069 */ |
7058 unsigned int | 7070 unsigned int |
7059 get_ve_flags(void) | 7071 get_ve_flags(void) |
7060 { | 7072 { |