diff --git a/mvc/models.py b/mvc/models.py index ab95d6d..c533c26 100644 --- a/mvc/models.py +++ b/mvc/models.py @@ -349,7 +349,7 @@ class VimModel: self.dump = [line.substr(0) for line in self.displayBuffer] def RecoverLine(self) -> None: - self.displayBuffer[self.currentLine] = self.dump[self.currentLine] + self.displayBuffer[self.currentLine] = self.dump[self.currentLine].substr(0) self.currentCol = 0 def LoadFile(self, file_path) -> None: