- filename = args[i]
-
- // Check that the file exists
- var input *os.File
- if _, e := os.Stat(filename); e == nil {
- // If it exists we load it into a buffer
- input, err = os.Open(filename)
- stat, _ := input.Stat()
- defer input.Close()
- if err != nil {
- TermMessage(err)
- continue
- }
- if stat.IsDir() {
- TermMessage("Cannot read", filename, "because it is a directory")
- continue
+ if strings.HasPrefix(args[i], "+") {
+ if strings.Contains(args[i], ":") {
+ split := strings.Split(args[i], ":")
+ *flagStartPos = split[0][1:] + "," + split[1]
+ } else {
+ *flagStartPos = args[i][1:] + ",0"