mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 10:59:08 +00:00 
			
		
		
		
	[Fix #263] Revert "Ensure that $terminfo values are valid"
The VT100 terminal application mode is an old relic that is no longer
needed.
This reverts commit a5f8d04d34.
			
			
This commit is contained in:
		@@ -136,23 +136,8 @@ function editor-info {
 | 
			
		||||
}
 | 
			
		||||
zle -N editor-info
 | 
			
		||||
 | 
			
		||||
# Ensures that $terminfo values are valid and updates editor information when
 | 
			
		||||
# the keymap changes.
 | 
			
		||||
# Updates editor information when the keymap changes.
 | 
			
		||||
function zle-keymap-select zle-line-init zle-line-finish {
 | 
			
		||||
  # The terminal must be in application mode when ZLE is active for $terminfo
 | 
			
		||||
  # values to be valid.
 | 
			
		||||
  case "$0" in
 | 
			
		||||
    (zle-line-init)
 | 
			
		||||
      # Enable terminal application mode.
 | 
			
		||||
      echoti smkx
 | 
			
		||||
    ;;
 | 
			
		||||
    (zle-line-finish)
 | 
			
		||||
      # Disable terminal application mode.
 | 
			
		||||
      echoti rmkx
 | 
			
		||||
    ;;
 | 
			
		||||
  esac
 | 
			
		||||
 | 
			
		||||
  # Update editor information.
 | 
			
		||||
  zle editor-info
 | 
			
		||||
}
 | 
			
		||||
zle -N zle-keymap-select
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user