make undothresthold a setting

This commit is contained in:
Camille Scholtz
2016-05-24 21:38:46 +02:00
parent 55a6b6701d
commit 3da2a870b6
3 changed files with 24 additions and 15 deletions

View File

@@ -17,10 +17,14 @@ import (
)
const (
synLinesUp = 75 // How many lines up to look to do syntax highlighting
synLinesDown = 75 // How many lines down to look to do syntax highlighting
doubleClickThreshold = 400 // How many milliseconds to wait before a second click is not a double click
undoThreshold = 500 // If two events are less than n milliseconds apart, undo both of them
// How many lines up to look to do syntax highlighting
synLinesUp = 75
// How many lines down to look to do syntax highlighting
synLinesDown = 75
// How many milliseconds to wait before a second click is not a double click
doubleClickThreshold = 400
// If two events are less than n milliseconds apart, undo both of them
undoThreshold = int(settings["undothreshold"].(float64))
)
var (