aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-05 14:58:59 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-05 15:04:37 +0800
commit42863634dd83d70710436bb599b13571d734c662 (patch)
tree2468a5b93ab897f105ea303669c7fffdbcb238d3 /src/nvim/edit.c
parent6e2d23ac435aa187c88a4174b8f9bb3e01e8d622 (diff)
downloadrneovim-42863634dd83d70710436bb599b13571d734c662.tar.gz
rneovim-42863634dd83d70710436bb599b13571d734c662.tar.bz2
rneovim-42863634dd83d70710436bb599b13571d734c662.zip
vim-patch:8.2.3615: wrong indent in first line if re-formatting with indent expr
Problem: When re-formatting with an indent expression the first line of a paragraph may get the wrong indent. (Martin F. Krafft) Solution: Apply the correct indenting function for the first line. (Christian Brabandt, closes vim/vim#9150, closes vim/vim#9056) https://github.com/vim/vim/commit/818ff25cd1aabf60b9cd239da2f1328a959954f7
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index d21583e951..e3c80505c8 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -7330,7 +7330,7 @@ static void replace_do_bs(int limit_col)
}
/// Check that C-indenting is on.
-static bool cindent_on(void)
+bool cindent_on(void)
FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT
{
return !p_paste && (curbuf->b_p_cin || *curbuf->b_p_inde != NUL);