mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	#13039 allow proper deletion of '>>> ' in IDLE editor windows.
Patch by Roger Serwy.
This commit is contained in:
		
							parent
							
								
									63e6c3222f
								
							
						
					
					
						commit
						7f53aea53b
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -1134,7 +1134,10 @@ def smart_backspace_event(self, event): | |||
|         assert have > 0 | ||||
|         want = ((have - 1) // self.indentwidth) * self.indentwidth | ||||
|         # Debug prompt is multilined.... | ||||
|         if self.context_use_ps1: | ||||
|             last_line_of_prompt = sys.ps1.split('\n')[-1] | ||||
|         else: | ||||
|             last_line_of_prompt = '' | ||||
|         ncharsdeleted = 0 | ||||
|         while 1: | ||||
|             if chars == last_line_of_prompt: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Terry Jan Reedy
						Terry Jan Reedy