Deselect with mouse

This commit also makes non editing actions (save, quit...) only execute
once even if there are multiple cursors.
This commit is contained in:
Zachary Yedidia
2017-06-17 11:05:23 -04:00
parent 118e6b1804
commit 681da2e90c
2 changed files with 428 additions and 348 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -621,6 +621,10 @@ func (v *View) HandleEvent(event tcell.Event) {
}
}
func (v *View) mainCursor() bool {
return v.Buf.curCursor == len(v.Buf.cursors)-1
}
// GutterMessage creates a message in this view's gutter
func (v *View) GutterMessage(section string, lineN int, msg string, kind int) {
lineN--