mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Associate value with a mark using: mate --set-mark «mark»:«value»
This commit is contained in:
@@ -617,8 +617,9 @@ struct socket_observer_t
|
||||
}
|
||||
else if(record.command == "set-mark")
|
||||
{
|
||||
std::string::size_type n = mark.find(':');
|
||||
if(doc)
|
||||
doc->add_mark(line, mark);
|
||||
doc->add_mark(line, n == std::string::npos ? mark : mark.substr(0, n), n == std::string::npos ? std::string() : mark.substr(n+1));
|
||||
else fprintf(stderr, "set-mark: no document\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user