fixed: cursor pos when creating note with tags in url
This commit is contained in:
		
							parent
							
								
									05b438714e
								
							
						
					
					
						commit
						65f55a65e8
					
				
							
								
								
									
										3
									
								
								main.js
								
								
								
								
							
							
						
						
									
										3
									
								
								main.js
								
								
								
								
							| 
						 | 
				
			
			@ -1321,7 +1321,8 @@ function loadstorage()
 | 
			
		|||
		currentnote = getnote(title);
 | 
			
		||||
		if (!currentnote)
 | 
			
		||||
		{
 | 
			
		||||
			currentnote = {title: title, content: defaultheaders(title, tags)};
 | 
			
		||||
			var newcontent = defaultheaders(title, tags);
 | 
			
		||||
			currentnote = {title: title, content: newcontent, pos: newcontent.length};
 | 
			
		||||
			localdata.unshift(currentnote);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue