To: vim_dev@googlegroups.com Subject: Patch 8.1.1729 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.1729 Problem: Heredoc with trim not properly handled in function. Solution: Allow for missing indent. (FUJIWARA Takuya, closes #4713) Files: src/userfunc.c, src/testdir/test_let.vim *** ../vim-8.1.1728/src/userfunc.c 2019-07-14 15:48:35.245984506 +0200 --- src/userfunc.c 2019-07-21 22:59:41.480775845 +0200 *************** *** 2000,2007 **** int overwrite = FALSE; int indent; int nesting; - char_u *skip_until = NULL; - char_u *trimmed = NULL; dictitem_T *v; funcdict_T fudi; static int func_nr = 0; /* number for nameless function */ --- 2000,2005 ---- *************** *** 2012,2017 **** --- 2010,2018 ---- int do_concat = TRUE; linenr_T sourcing_lnum_off; linenr_T sourcing_lnum_top; + int is_heredoc = FALSE; + char_u *skip_until = NULL; + char_u *heredoc_trimmed = NULL; /* * ":function" without argument: list functions. *************** *** 2331,2347 **** if (skip_until != NULL) { ! // Between ":append" and "." and between ":python <