Mercurial > vim
diff src/optionstr.c @ 25487:c26ff3203b43 v8.2.3280
patch 8.2.3280: 'virtualedit' local to buffer is not the best solution
Commit: https://github.com/vim/vim/commit/51ad850f5fbafa7aa3f60affa74ec9c9f992c6cc
Author: Gary Johnson <garyjohn@spocom.com>
Date: Tue Aug 3 18:33:08 2021 +0200
patch 8.2.3280: 'virtualedit' local to buffer is not the best solution
Problem: 'virtualedit' local to buffer is not the best solution.
Solution: Make it window-local. (Gary Johnson, closes https://github.com/vim/vim/issues/8685)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 03 Aug 2021 18:45:04 +0200 |
parents | ac88cd21ae88 |
children | 4b2616ffe32b |
line wrap: on
line diff
--- a/src/optionstr.c +++ b/src/optionstr.c @@ -298,7 +298,6 @@ check_buf_options(buf_T *buf) check_string_option(&buf->b_p_vsts); check_string_option(&buf->b_p_vts); #endif - check_string_option(&buf->b_p_ve); } /* @@ -2083,8 +2082,8 @@ ambw_end: if (opt_flags & OPT_LOCAL) { - ve = curbuf->b_p_ve; - flags = &curbuf->b_ve_flags; + ve = curwin->w_p_ve; + flags = &curwin->w_ve_flags; } if ((opt_flags & OPT_LOCAL) && *ve == NUL)