mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Drop the edit mode key tables and just use fixed key bindings for the
command prompt.
This commit is contained in:
		@@ -120,11 +120,9 @@ cmd_bind_key_mode_table(struct cmd *self, struct cmd_q *cmdq, key_code key)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	mtmp.key = key;
 | 
			
		||||
	mtmp.mode = !!args_has(args, 'c');
 | 
			
		||||
	if ((mbind = RB_FIND(mode_key_tree, mtab->tree, &mtmp)) == NULL) {
 | 
			
		||||
		mbind = xmalloc(sizeof *mbind);
 | 
			
		||||
		mbind->key = mtmp.key;
 | 
			
		||||
		mbind->mode = mtmp.mode;
 | 
			
		||||
		RB_INSERT(mode_key_tree, mtab->tree, mbind);
 | 
			
		||||
	}
 | 
			
		||||
	mbind->cmd = cmd;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user