diff src/eval.c @ 7862:d4fec9208e7e v7.4.1228

commit https://github.com/vim/vim/commit/155500077c80cdb5d9c63996000c011b66a676bf Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 31 18:45:24 2016 +0100 patch 7.4.1228 Problem: copy() and deepcopy() fail with special variables. (Nikolai Pavlov) Solution: Make it work. Add a test. Closes https://github.com/vim/vim/issues/614.
author Christian Brabandt <cb@256bit.org>
date Sun, 31 Jan 2016 19:00:04 +0100
parents 226ed297307f
children 6b0891de44a9
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -21939,6 +21939,7 @@ item_copy(
 #endif
 	case VAR_STRING:
 	case VAR_FUNC:
+	case VAR_SPECIAL:
 	    copy_tv(from, to);
 	    break;
 	case VAR_LIST: