

def testDoesNotLingerPastSoftEOL(self):
    self.write('abc\nxxx\nabc\nabc')
    self.clear_sel()
    self.add_sel(self.R((1, 0), (1, 0)))
    expected.view.run_command('_vi_dd', {
        '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\nabc\nabc'
    self.assertEqual(expected, actual)
    actual_sel = self.view.sel()[0]
    self.assertEqual(self.R((1, 0), (1, 0)), actual_sel)

dataset/ETHPy150Open guillermooo/Vintageous/tests/commands/test__vi_ctrl_r.py Test__vi_ctrl_r.testDoesNotLingerPastSoftEOL/VarMisuse@45/68 `self`->`expected`