Fixed enumerating of Text::String with clickable monospace.
This commit is contained in:
		
							parent
							
								
									d7b3a68351
								
							
						
					
					
						commit
						2b87a251cd
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -3276,6 +3276,9 @@ void String::enumerateText(TextSelection selection, AppendPartCallback appendPar | ||||||
| 		uint16 blockFrom = (i == e) ? _text.size() : (*i)->from(); | 		uint16 blockFrom = (i == e) ? _text.size() : (*i)->from(); | ||||||
| 		int32 blockFlags = (i == e) ? 0 : (*i)->flags(); | 		int32 blockFlags = (i == e) ? 0 : (*i)->flags(); | ||||||
| 
 | 
 | ||||||
|  | 		if (IsMono(blockFlags)) { | ||||||
|  | 			blockLnkIndex = 0; | ||||||
|  | 		} | ||||||
| 		if (blockLnkIndex && !_links.at(blockLnkIndex - 1)) { // ignore empty links
 | 		if (blockLnkIndex && !_links.at(blockLnkIndex - 1)) { // ignore empty links
 | ||||||
| 			blockLnkIndex = 0; | 			blockLnkIndex = 0; | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 23rd
						23rd