Mercurial > vim
comparison src/terminal.c @ 19513:274052873790 v8.2.0314
patch 8.2.0314: short name not set for terminal buffer
Commit: https://github.com/vim/vim/commit/e010c720b2024d8c6df45c60c6001c3b4f157de1
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 24 21:37:54 2020 +0100
patch 8.2.0314: short name not set for terminal buffer
Problem: Short name not set for terminal buffer.
Solution: Set the short name. (closes https://github.com/vim/vim/issues/5687)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 24 Feb 2020 21:45:04 +0100 |
parents | 734ca70c1f12 |
children | 9e428147e4ee |
comparison
equal
deleted
inserted
replaced
19512:8e63e95fca06 | 19513:274052873790 |
---|---|
564 curbuf->b_ffname = p; | 564 curbuf->b_ffname = p; |
565 break; | 565 break; |
566 } | 566 } |
567 } | 567 } |
568 } | 568 } |
569 vim_free(curbuf->b_sfname); | |
570 curbuf->b_sfname = vim_strsave(curbuf->b_ffname); | |
569 curbuf->b_fname = curbuf->b_ffname; | 571 curbuf->b_fname = curbuf->b_ffname; |
570 | 572 |
571 if (opt->jo_term_opencmd != NULL) | 573 if (opt->jo_term_opencmd != NULL) |
572 term->tl_opencmd = vim_strsave(opt->jo_term_opencmd); | 574 term->tl_opencmd = vim_strsave(opt->jo_term_opencmd); |
573 | 575 |