From 6dafc9ad1f3d1d372fec3934b100d88e81971a75 Mon Sep 17 00:00:00 2001 From: c-bata Date: Mon, 17 Jul 2017 02:21:14 +0900 Subject: [PATCH] Remove unused comment --- prompt/buffer.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/prompt/buffer.go b/prompt/buffer.go index 8328450..d0c01b5 100644 --- a/prompt/buffer.go +++ b/prompt/buffer.go @@ -9,7 +9,7 @@ type Buffer struct { workingLines []string // The working lines. Similar to history workingIndex int CursorPosition int - cacheDocument *Document // TODO: More effective cache using Queue or map. See https://github.com/jonathanslenders/python-prompt-toolkit/blob/master/prompt_toolkit/cache.py#L55-L93 + cacheDocument *Document preferredColumn int // Remember the original column for the next up/down movement. } @@ -50,9 +50,6 @@ func (b *Buffer) InsertText(v string, overwrite bool, moveCursor bool) { if moveCursor { b.CursorPosition += len([]rune(v)) } - - // TODO: Fire onTextInsert event. - // https://github.com/jonathanslenders/python-prompt-toolkit/blob/master/prompt_toolkit/buffer.py#L1063-L1065 } // SetText method to set text and update CursorPosition. @@ -62,8 +59,6 @@ func (b *Buffer) setText(v string) { if b.CursorPosition > len([]rune(v)) { panic("The length of input value should be shorter than the position of cursor.") } - // TODO: Add checking that the buffer is read only? - // https://github.com/jonathanslenders/python-prompt-toolkit/blob/master/prompt_toolkit/buffer.py#L374-L376 o := b.workingLines[b.workingIndex] b.workingLines[b.workingIndex] = v