(self, tab_size, undo_limit, io_device)
| 169 | file_char = "_.-" |
| 170 | match_span = 50 |
| 171 | def __init__(self, tab_size, undo_limit, io_device): |
| 172 | self.top_line = self.cur_line = self.row = self.vcol = self.col = self.margin = 0 |
| 173 | self.tab_size = tab_size |
| 174 | self.changed = '' |
| 175 | self.hash = 0 |
| 176 | self.message = self.fname = "" |
| 177 | self.content = [""] |
| 178 | self.undo = [] |
| 179 | self.undo_limit = undo_limit |
| 180 | self.redo = [] |
| 181 | self.clear_mark() |
| 182 | self.write_tabs = "n" |
| 183 | self.work_dir = os.getcwd() |
| 184 | self.io_device = io_device |
| 185 | self.wr = io_device.wr |
| 186 | self.is_dir = False |
| 187 | self.key_max = 0 |
| 188 | for _ in Editor.KEYMAP.keys(): |
| 189 | self.key_max = max(self.key_max, len(_)) |
| 190 | def goto(self, row, col): |
| 191 | self.wr(Editor.TERMCMD[0].format(row=row + 1, col=col + 1)) |
| 192 | def clear_to_eol(self): |
nothing calls this directly
no test coverage detected