view src/testdir/test_ex_undo.vim @ 22280:47ebfc274e3f v8.2.1689

patch 8.2.1689: 'colorcolumn' doesn't show in indent Commit: https://github.com/vim/vim/commit/ad5e5631c5dc93a50bbe637be254c5e9968848ea Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 15 20:52:26 2020 +0200 patch 8.2.1689: 'colorcolumn' doesn't show in indent Problem: 'colorcolumn' doesn't show in indent. Solution: Also draw the column when draw_state is WL_BRI or WL_SBR. (Alexey Demin, closes #6948, closes #6619)
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Sep 2020 21:00:03 +0200
parents 08940efa6b4e
children
line wrap: on
line source

" Tests for :undo

func Test_ex_undo()
  new ex-undo
  setlocal ul=10
  exe "normal ione\n\<Esc>"
  setlocal ul=10
  exe "normal itwo\n\<Esc>"
  setlocal ul=10
  exe "normal ithree\n\<Esc>"
  call assert_equal(4, line('$'))
  undo
  call assert_equal(3, line('$'))
  undo 1
  call assert_equal(2, line('$'))
  undo 0
  call assert_equal(1, line('$'))
  quit!
endfunc

" vim: shiftwidth=2 sts=2 expandtab