@@ -164,8 +164,7 @@ extension Context {
164164 //=------------------------------------------------------------------------=
165165
166166 /// Use this method on view update.
167- @inlinable public mutating func merge(
168- _ status: Status , with cache: inout Cache ,
167+ @inlinable public mutating func merge( _ status: Status , with cache: inout Cache ,
169168 and options: Synchronize ) throws -> Update {
170169 var update = Update ( )
171170 //=--------------------------------------=
@@ -177,10 +176,10 @@ extension Context {
177176 //=--------------------------------------=
178177 // Validation
179178 //=--------------------------------------=
180- if options. contains ( . invariant ) , update. contains ( . value) {
181- let input = Info . mark ( status. value)
182- let output = Info . mark ( next . value)
183- throw Info ( [ " input \( input) != \( output) output " ] )
179+ if options. contains ( . acyclical ) , update. contains ( . value) {
180+ let input = Info . init ( [ . note ( status. value) , " [input] " ] )
181+ let output = Info . init ( [ . note ( next . value) , " [output] " ] )
182+ throw Info ( [ . mark ( " cyclical " ) , " \( input) != \( output) " ] )
184183 }
185184 //=--------------------------------------=
186185 // Update x Active == 2
@@ -207,8 +206,7 @@ extension Context {
207206 //=------------------------------------------------------------------------=
208207
209208 /// Use this method on changes to text.
210- @inlinable public mutating func merge< T> (
211- _ text: String , in range: Range < Offset < T > > ,
209+ @inlinable public mutating func merge< T> ( _ text: String , in range: Range < Offset < T > > ,
212210 with cache: inout Cache ) throws -> Update {
213211 var update = Update ( )
214212 //=--------------------------------------=
@@ -242,8 +240,8 @@ extension Context {
242240 //=------------------------------------------------------------------------=
243241
244242 /// Use this method on changes to selection.
245- @inlinable public mutating func merge< T> (
246- _ selection : Range < Offset < T > > , with options: Resolve ) -> Update {
243+ @inlinable public mutating func merge< T> ( _ selection : Range < Offset < T > > ,
244+ with options: Resolve ) -> Update {
247245 var update = Update ( )
248246 //=--------------------------------------=
249247 // Layout
0 commit comments