Skip to content

Commit

Permalink
still dislike mouse works when clicking modeline
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofer committed Nov 18, 2021
1 parent 2ae030c commit 37561c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified docs/foo
Binary file not shown.
6 changes: 3 additions & 3 deletions editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (e *Editor) handleEvent(ev *termbox.Event) bool {
e.updateDisplay()
case termbox.EventMouse:
termbox.Clear(termbox.ColorDefault, termbox.ColorDefault)
e.msg("Mouse: c %d, r %d ", ev.MouseX, ev.MouseY)
e.msg("Mouse: r %d, c %d ", ev.MouseY, ev.MouseX)
e.SetPointForMouse(ev.MouseX, ev.MouseY)
e.updateDisplay()
case termbox.EventError:
Expand Down Expand Up @@ -424,9 +424,9 @@ func (e *Editor) ModeLine(wp *Window) {
mch = '*'
}
och = lch
temp := fmt.Sprintf("%c%c%c kg: %c%c %s wp(%d,%d)", lch, och, mch, lch, lch,
temp := fmt.Sprintf("%c%c%c kg: %c%c %s L%d wp(%d,%d)", lch, och, mch, lch, lch,
e.GetBufferName(wp.Buffer),
wp.Col, wp.Row)
wp.Buffer.PointRow, wp.Row, wp.Col)
x := 0
y := wp.TopPt + wp.Rows + 1
for _, c := range temp {
Expand Down

0 comments on commit 37561c2

Please sign in to comment.