comparison src/userfunc.c @ 24653:0ef7bb28f2c3 v8.2.2865

patch 8.2.2865: skipping over function body fails Commit: https://github.com/vim/vim/commit/d87c21a918d8d611750f22d68fc638bf7a79b1d5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 18 13:40:33 2021 +0200 patch 8.2.2865: skipping over function body fails Problem: Skipping over function body fails. Solution: Do not define the function when skipping.
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 May 2021 13:45:03 +0200
parents 5dea95170907
children 3876d9629ebd
comparison
equal deleted inserted replaced
24652:9cf4f1cd73e3 24653:0ef7bb28f2c3
4012 } 4012 }
4013 4013
4014 // Save the starting line number. 4014 // Save the starting line number.
4015 sourcing_lnum_top = SOURCING_LNUM; 4015 sourcing_lnum_top = SOURCING_LNUM;
4016 4016
4017 if (get_function_body(eap, &newlines, line_arg, &line_to_free) == FAIL) 4017 // Do not define the function when getting the body fails and when
4018 // skipping.
4019 if (get_function_body(eap, &newlines, line_arg, &line_to_free) == FAIL
4020 || eap->skip)
4018 goto erret; 4021 goto erret;
4019 4022
4020 /* 4023 /*
4021 * If there are no errors, add the function 4024 * If there are no errors, add the function
4022 */ 4025 */