comparison src/edit.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 7dd83b5325e9
children df141c730008
comparison
equal deleted inserted replaced
18573:f18a4ae518f1 18574:8b0114ffde2b
3236 { 3236 {
3237 coladvance(v - width); 3237 coladvance(v - width);
3238 /* getviscol() is slow, skip it when 'showbreak' is empty, 3238 /* getviscol() is slow, skip it when 'showbreak' is empty,
3239 * 'breakindent' is not set and there are no multi-byte 3239 * 'breakindent' is not set and there are no multi-byte
3240 * characters */ 3240 * characters */
3241 if ((*p_sbr == NUL && !curwin->w_p_bri 3241 if ((*get_showbreak_value(curwin) == NUL && !curwin->w_p_bri
3242 && !has_mbyte) || getviscol() < v) 3242 && !has_mbyte) || getviscol() < v)
3243 break; 3243 break;
3244 ++width; 3244 ++width;
3245 } 3245 }
3246 #else 3246 #else