Mercurial > vim
comparison src/ex_cmds.c @ 17178:40c4cb095d53 v8.1.1588
patch 8.1.1588: in :let-heredoc line continuation is recognized
commit https://github.com/vim/vim/commit/e96a2498f9a2d3e93ac07431f6d4afd77f30afdf
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 25 04:12:16 2019 +0200
patch 8.1.1588: in :let-heredoc line continuation is recognized
Problem: In :let-heredoc line continuation is recognized.
Solution: Do not consume line continuation. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/4580)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 25 Jun 2019 04:15:08 +0200 |
parents | 10e0d7d96cb0 |
children | 278583ff5e44 |
comparison
equal
deleted
inserted
replaced
17177:b58feb1a84f0 | 17178:40c4cb095d53 |
---|---|
4538 State = CMDLINE; | 4538 State = CMDLINE; |
4539 theline = eap->getline( | 4539 theline = eap->getline( |
4540 #ifdef FEAT_EVAL | 4540 #ifdef FEAT_EVAL |
4541 eap->cstack->cs_looplevel > 0 ? -1 : | 4541 eap->cstack->cs_looplevel > 0 ? -1 : |
4542 #endif | 4542 #endif |
4543 NUL, eap->cookie, indent); | 4543 NUL, eap->cookie, indent, TRUE); |
4544 State = save_State; | 4544 State = save_State; |
4545 } | 4545 } |
4546 lines_left = Rows - 1; | 4546 lines_left = Rows - 1; |
4547 if (theline == NULL) | 4547 if (theline == NULL) |
4548 break; | 4548 break; |
5386 for (i = 0; i < (long)sc; ++i) | 5386 for (i = 0; i < (long)sc; ++i) |
5387 msg_putchar(' '); | 5387 msg_putchar(' '); |
5388 for ( ; i <= (long)ec; ++i) | 5388 for ( ; i <= (long)ec; ++i) |
5389 msg_putchar('^'); | 5389 msg_putchar('^'); |
5390 | 5390 |
5391 resp = getexmodeline('?', NULL, 0); | 5391 resp = getexmodeline('?', NULL, 0, TRUE); |
5392 if (resp != NULL) | 5392 if (resp != NULL) |
5393 { | 5393 { |
5394 typed = *resp; | 5394 typed = *resp; |
5395 vim_free(resp); | 5395 vim_free(resp); |
5396 } | 5396 } |