mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-29 17:31:02 +01:00 
			
		
		
		
	11302: Cursor placement and defensive programming.
This commit is contained in:
		
							parent
							
								
									8272e68ecc
								
							
						
					
					
						commit
						f4e8281646
					
				
					 2 changed files with 9 additions and 5 deletions
				
			
		|  | @ -1,3 +1,8 @@ | |||
| 2000-05-10  Bart Schaefer  <schaefer@zsh.org> | ||||
| 
 | ||||
| 	* 11302: Functions/Zle/edit-command-line: Cursor placement and | ||||
| 	defensive programming. | ||||
| 
 | ||||
| 2000-05-10  Oliver Kiddle  <opk@zsh.org> | ||||
| 
 | ||||
| 	* 11301: Src/Zle/zle_misc.c: AIX dependency fix | ||||
|  |  | |||
|  | @ -7,12 +7,11 @@ | |||
| 
 | ||||
| local tmpfile=${TMPPREFIX:-/tmp/zsh}ecl$$ | ||||
| 
 | ||||
| print $BUFFER >$tmpfile | ||||
| print -R - "$BUFFER" >$tmpfile | ||||
| exec </dev/tty | ||||
| ${VISUAL:-${EDITOR:-vi}} $tmpfile | ||||
| LBUFFER= | ||||
| RBUFFER= | ||||
| BUFFER=$(<$tmpfile) | ||||
| BUFFER="$(<$tmpfile)" | ||||
| CURSOR=$#BUFFER | ||||
| 
 | ||||
| rm -f $tmpfile | ||||
| command rm -f $tmpfile | ||||
| zle redisplay | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue