MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / yank_mark

Method yank_mark

pye.py:555–559  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

553 self.mark_flag = 0
554 self.mouse_last = (0, 0, 0)
555 def yank_mark(self):
556 start_row, start_col, end_row, end_col = self.mark_range()
557 Editor.yank_buffer = self.content[start_row:end_row]
558 Editor.yank_buffer[-1] = Editor.yank_buffer[-1][:end_col]
559 Editor.yank_buffer[0] = Editor.yank_buffer[0][start_col:]
560 def delete_mark(self, yank):
561 if yank:
562 self.yank_mark()

Callers 2

delete_markMethod · 0.95
handle_edit_keysMethod · 0.95

Calls 1

mark_rangeMethod · 0.95

Tested by

no test coverage detected