Mercurial > vim
comparison src/ops.c @ 18574:8b0114ffde2b v8.1.2281
patch 8.1.2281: 'showbreak' cannot be set for one window
Commit: https://github.com/vim/vim/commit/ee85702c10495041791f728e977b86005c4496e8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 9 23:26:40 2019 +0100
patch 8.1.2281: 'showbreak' cannot be set for one window
Problem: 'showbreak' cannot be set for one window.
Solution: Make 'showbreak' global-local.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 09 Nov 2019 23:30:03 +0100 |
parents | 26256dcadd77 |
children | 9cbdd58eeeb2 |
comparison
equal
deleted
inserted
replaced
18573:f18a4ae518f1 | 18574:8b0114ffde2b |
---|---|
3634 | 3634 |
3635 if (VIsual_mode == Ctrl_V) | 3635 if (VIsual_mode == Ctrl_V) |
3636 { | 3636 { |
3637 #ifdef FEAT_LINEBREAK | 3637 #ifdef FEAT_LINEBREAK |
3638 char_u * saved_sbr = p_sbr; | 3638 char_u * saved_sbr = p_sbr; |
3639 char_u * saved_w_sbr = curwin->w_p_sbr; | |
3639 | 3640 |
3640 /* Make 'sbr' empty for a moment to get the correct size. */ | 3641 /* Make 'sbr' empty for a moment to get the correct size. */ |
3641 p_sbr = empty_option; | 3642 p_sbr = empty_option; |
3643 curwin->w_p_sbr = empty_option; | |
3642 #endif | 3644 #endif |
3643 oparg.is_VIsual = 1; | 3645 oparg.is_VIsual = 1; |
3644 oparg.block_mode = TRUE; | 3646 oparg.block_mode = TRUE; |
3645 oparg.op_type = OP_NOP; | 3647 oparg.op_type = OP_NOP; |
3646 getvcols(curwin, &min_pos, &max_pos, | 3648 getvcols(curwin, &min_pos, &max_pos, |
3647 &oparg.start_vcol, &oparg.end_vcol); | 3649 &oparg.start_vcol, &oparg.end_vcol); |
3648 #ifdef FEAT_LINEBREAK | 3650 #ifdef FEAT_LINEBREAK |
3649 p_sbr = saved_sbr; | 3651 p_sbr = saved_sbr; |
3652 curwin->w_p_sbr = saved_w_sbr; | |
3650 #endif | 3653 #endif |
3651 if (curwin->w_curswant == MAXCOL) | 3654 if (curwin->w_curswant == MAXCOL) |
3652 oparg.end_vcol = MAXCOL; | 3655 oparg.end_vcol = MAXCOL; |
3653 /* Swap the start, end vcol if needed */ | 3656 /* Swap the start, end vcol if needed */ |
3654 if (oparg.end_vcol < oparg.start_vcol) | 3657 if (oparg.end_vcol < oparg.start_vcol) |