Mercurial > vim
comparison src/ex_docmd.c @ 22176:6941d3205be9 v8.2.1637
patch 8.2.1637: Vim9: :put ={expr} does not work inside :def function
Commit: https://github.com/vim/vim/commit/c3516f7e4507c77424b94cb89071f6d0841f4e6a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 8 22:45:35 2020 +0200
patch 8.2.1637: Vim9: :put ={expr} does not work inside :def function
Problem: Vim9: :put ={expr} does not work inside :def function.
Solution: Add ISN_PUT. (closes https://github.com/vim/vim/issues/6397)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 08 Sep 2020 23:00:04 +0200 |
parents | 8350bdbdbb28 |
children | a607f02fd17a |
comparison
equal
deleted
inserted
replaced
22175:0c8d7e6e20a6 | 22176:6941d3205be9 |
---|---|
7319 { | 7319 { |
7320 eap->line2 = 1; | 7320 eap->line2 = 1; |
7321 eap->forceit = TRUE; | 7321 eap->forceit = TRUE; |
7322 } | 7322 } |
7323 curwin->w_cursor.lnum = eap->line2; | 7323 curwin->w_cursor.lnum = eap->line2; |
7324 do_put(eap->regname, eap->forceit ? BACKWARD : FORWARD, 1L, | 7324 do_put(eap->regname, NULL, eap->forceit ? BACKWARD : FORWARD, 1L, |
7325 PUT_LINE|PUT_CURSLINE); | 7325 PUT_LINE|PUT_CURSLINE); |
7326 } | 7326 } |
7327 | 7327 |
7328 /* | 7328 /* |
7329 * Handle ":copy" and ":move". | 7329 * Handle ":copy" and ":move". |