

def testDoesNotLingerPastSoftEOL2(self):
    self.write('abc\nxxx foo bar\nabc\nabc')
    self.clear_sel()
    self.add_sel(self.R((1, 8), (1, 8)))
    self.view.run_command('_vi_big_d', {
        'mode': modes.INTERNAL_NORMAL,
    })
    self.view.window().run_command('_vi_u')
    self.view.window().run_command('_vi_ctrl_r')
    actual = self.view.substr(self.R(0, self.view.size()))
    expected = 'abc\nxxx foo \nabc\nabc'
    self.assertEqual(expected, actual)
    actual_sel = self.view.sel()[0]
    self.assertEqual(actual_sel.R((1, 7), (1, 7)), actual_sel)

dataset/ETHPy150Open guillermooo/Vintageous/tests/commands/test__vi_ctrl_r.py Test__vi_ctrl_r.testDoesNotLingerPastSoftEOL2/VarMisuse@145/214 `self`->`actual_sel`