package cpup.poke4j;

public class Cursor {
	protected final Poke poke;
	protected final Buffer buffer;
	protected int column;
	protected int line;
	protected Selection selection;

	public Cursor(Poke _poke, Buffer _buffer, int _column, int _line) {
		poke = _poke;
		buffer = _buffer;
		column = _column;
		line = _line;
	}

	// Getters and Setters
	public Poke getPoke() {
		return poke;
	}

	public Buffer getBuffer() {
		return buffer;
	}

	public int getColumn() {
		return column;
	}

	public int getLine() {
		return line;
	}

	public Selection getSelection() {
		return selection;
	}
}
@@ -239,20 +239,42 @@
 nt _line
+, Selection _selection
 ) %7B%0A
-
 %09%09poke =
@@ -333,24 +333,169 @@
 ne = _line;%0A
+%09%09selection = _selection;%0A%09%7D%0A%0A%09public Cursor(Poke _poke, Buffer _buffer, int _column, int _line) %7B%0A%09%09this(_poke, _buffer, _column, _line, null);%0A
 %09%7D%0A%0A%09// Gett
@@ -725,24 +725,24 @@
 lection() %7B%0A
-
 %09%09return sel
@@ -751,10 +751,93 @@
 tion;%0A%09%7D
+%0A%0A%09public void setSelection(Selection selection) %7B%0A%09%09this.selection = selection;%0A%09%7D
 %0A%7D

Add ways of setting the selection on Cursor