var spans = this.annotationList_.getAnnotatedSpansForPos(pos);
var oldAttributes = this.currentAttributes_ || {};
this.currentAttributes_ = {};
var attributes = {};
// Use the attributes to the left unless they're line attributes (in which case use the ones to the right.
if (spans.length > 0 && (!(ATTR.LINE_SENTINEL in spans[0].annotation.attributes))) {
attributes = spans[0].annotation.attributes;
} else if (spans.length > 1) {
firepad.utils.assert(!(ATTR.LINE_SENTINEL in spans[1].annotation.attributes), "Cursor can't be between two line sentinel characters.");
attributes = spans[1].annotation.attributes;
} else {
this.currentAttributes_ = oldAttributes;
return;
}
Confidentiality Notice: The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please notify the sender by reply e-mail or phone and delete the original message and its content, including all attachments, if applicable. --
You received this message because you are subscribed to the Google Groups "Firepad" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firepad-io+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firepad-io/cd13f318-c793-4017-b0f9-5879fe43c7b3%40googlegroups.com.
Confidentiality Notice: The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please notify the sender by reply e-mail or phone and delete the original message and its content, including all attachments, if applicable.
--
You received this message because you are subscribed to the Google Groups "Firepad" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firepad-io+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firepad-io/73e56246-b2b6-44e3-9d47-060544b84238%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Firepad" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firepad-io+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firepad-io/0dd55cd9-292d-4369-9efb-4f8f748c63be%40googlegroups.com.
Confidentiality Notice: The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please notify the sender by reply e-mail or phone and delete the original message and its content, including all attachments, if applicable.
--
You received this message because you are subscribed to the Google Groups "Firepad" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firepad-io+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firepad-io/e9b8af2b-c6a1-4e63-9eca-18a74e0dafd7%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firepad-io/b55f1b9d-e7f9-4f47-8cb5-cb81df6a0ea6%40googlegroups.com.