Mercurial > vim
comparison src/evalfunc.c @ 16638:4790302965fc v8.1.1321
patch 8.1.1321: no docs or tests for listener functions
commit https://github.com/vim/vim/commit/a334772967de25764ed7b11d768e8b977818d0c6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 11 21:14:24 2019 +0200
patch 8.1.1321: no docs or tests for listener functions
Problem: No docs or tests for listener functions.
Solution: Add help and tests for listener_add() and listener_remove().
Invoke the callbacks before redrawing.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 11 May 2019 21:15:06 +0200 |
parents | a1ba0bd74e7d |
children | ea0f9a2df961 |
comparison
equal
deleted
inserted
replaced
16637:511e89374819 | 16638:4790302965fc |
---|---|
2007 buf = find_buffer(tv); | 2007 buf = find_buffer(tv); |
2008 | 2008 |
2009 return buf; | 2009 return buf; |
2010 } | 2010 } |
2011 | 2011 |
2012 #ifdef FEAT_SIGNS | |
2013 /* | 2012 /* |
2014 * Get the buffer from "arg" and give an error and return NULL if it is not | 2013 * Get the buffer from "arg" and give an error and return NULL if it is not |
2015 * valid. | 2014 * valid. |
2016 */ | 2015 */ |
2017 static buf_T * | 2016 buf_T * |
2018 get_buf_arg(typval_T *arg) | 2017 get_buf_arg(typval_T *arg) |
2019 { | 2018 { |
2020 buf_T *buf; | 2019 buf_T *buf; |
2021 | 2020 |
2022 ++emsg_off; | 2021 ++emsg_off; |
2024 --emsg_off; | 2023 --emsg_off; |
2025 if (buf == NULL) | 2024 if (buf == NULL) |
2026 semsg(_("E158: Invalid buffer name: %s"), tv_get_string(arg)); | 2025 semsg(_("E158: Invalid buffer name: %s"), tv_get_string(arg)); |
2027 return buf; | 2026 return buf; |
2028 } | 2027 } |
2029 #endif | |
2030 | 2028 |
2031 /* | 2029 /* |
2032 * "bufname(expr)" function | 2030 * "bufname(expr)" function |
2033 */ | 2031 */ |
2034 static void | 2032 static void |