mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
Close file
This commit is contained in:
@@ -215,7 +215,6 @@ func (h *BufPane) Name() string {
|
||||
}
|
||||
|
||||
// HandleEvent executes the tcell event properly
|
||||
// TODO: multiple actions bound to one key
|
||||
func (h *BufPane) HandleEvent(event tcell.Event) {
|
||||
switch e := event.(type) {
|
||||
case *tcell.EventRaw:
|
||||
|
||||
@@ -353,7 +353,6 @@ func IntOpt(opt interface{}) int {
|
||||
// coordinate (this is necessary because tabs are 1 char but
|
||||
// 4 visual spaces)
|
||||
func GetCharPosInLine(b []byte, visualPos int, tabsize int) int {
|
||||
|
||||
// Scan rune by rune until we exceed the visual width that we are
|
||||
// looking for. Then we can return the character position we have found
|
||||
i := 0 // char pos
|
||||
|
||||
Reference in New Issue
Block a user