comparison runtime/optwin.vim @ 13946:c2312fc9fbfe v8.0.1843

patch 8.0.1843: entry for 'wrap' in options window is wrong commit https://github.com/vim/vim/commit/8776889b5befd8eba66f4ad32282db36f85392a6 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 15 21:42:51 2018 +0200 patch 8.0.1843: entry for 'wrap' in options window is wrong Problem: Entry for 'wrap' in options window is wrong. (John Little) Solution: Make the change apply locally.
author Christian Brabandt <cb@256bit.org>
date Tue, 15 May 2018 21:45:06 +0200
parents e751b5c9dff3
children 2ad722003b36
comparison
equal deleted inserted replaced
13945:30691ca7a38e 13946:c2312fc9fbfe
1 " These commands create the option window. 1 " These commands create the option window.
2 " 2 "
3 " Maintainer: Bram Moolenaar <Bram@vim.org> 3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last Change: 2018 Apr 18 4 " Last Change: 2018 May 15
5 5
6 " If there already is an option window, jump to that one. 6 " If there already is an option window, jump to that one.
7 let buf = bufnr('option-window') 7 let buf = bufnr('option-window')
8 if buf >= 0 8 if buf >= 0
9 let winids = win_findbuf(buf) 9 let winids = win_findbuf(buf)
323 call append("$", "\t(local to window)") 323 call append("$", "\t(local to window)")
324 call <SID>OptionL("scr") 324 call <SID>OptionL("scr")
325 call append("$", "scrolloff\tnumber of screen lines to show around the cursor") 325 call append("$", "scrolloff\tnumber of screen lines to show around the cursor")
326 call append("$", " \tset so=" . &so) 326 call append("$", " \tset so=" . &so)
327 call append("$", "wrap\tlong lines wrap") 327 call append("$", "wrap\tlong lines wrap")
328 call <SID>BinOptionG("wrap", &wrap) 328 call append("$", "\t(local to window)")
329 call <SID>BinOptionL("wrap")
329 call append("$", "linebreak\twrap long lines at a character in 'breakat'") 330 call append("$", "linebreak\twrap long lines at a character in 'breakat'")
330 call append("$", "\t(local to window)") 331 call append("$", "\t(local to window)")
331 call <SID>BinOptionL("lbr") 332 call <SID>BinOptionL("lbr")
332 call append("$", "breakindent\tpreserve indentation in wrapped text") 333 call append("$", "breakindent\tpreserve indentation in wrapped text")
333 call append("$", "\t(local to window)") 334 call append("$", "\t(local to window)")