view src/testdir/test21.in @ 34407:8c4339d56b1b v9.1.0128

patch 9.1.0128: win_gotoid() may abort even when not switching a window Commit: https://github.com/vim/vim/commit/2a65e739447949a7aee966ce8a3b75521b2a79ea Author: Sean Dewar <6256228+seandewar@users.noreply.github.com> Date: Thu Feb 22 19:53:33 2024 +0100 patch 9.1.0128: win_gotoid() may abort even when not switching a window Problem: win_gotoid() checks for textlock and other things when switching to a window that is already current (after v9.1.0119) Solution: return early with success when attempting to switch to curwin (Sean Dewar) Other potential causes of E565 from win_gotoid after v9.1.0119 should be correct. Plugins can consider using win_execute() instead if they wish to temporarily switch windows during textlock. fixes: #14073 closes: #14074 Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 22 Feb 2024 20:00:08 +0100
parents 30bdd2e4a6f9
children
line wrap: on
line source

Tests for file with some lines ending in CTRL-M, some not

STARTTEST
:set ta tx
:e!
:$-3,$w! test.out
:qa!
ENDTEST

this lines ends in a
this one doesn't
this one does
and the last one doesn't