mirror of
				https://github.com/tmux-plugins/tmux-resurrect.git
				synced 2025-11-04 08:56:03 +00:00 
			
		
		
		
	Do not save empty trailing lines when pane content is saved
This commit is contained in:
		@@ -9,6 +9,7 @@
 | 
				
			|||||||
- refactoring: drop dependency on `paste` command
 | 
					- refactoring: drop dependency on `paste` command
 | 
				
			||||||
- bugfix for pane contents restoration
 | 
					- bugfix for pane contents restoration
 | 
				
			||||||
- expand tilde char `~` if used with `@resurrect-dir`
 | 
					- expand tilde char `~` if used with `@resurrect-dir`
 | 
				
			||||||
 | 
					- do not save empty trailing lines when pane content is saved
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### v2.4.0, 2015-02-23
 | 
					### v2.4.0, 2015-02-23
 | 
				
			||||||
- add "tmux-test"
 | 
					- add "tmux-test"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -117,7 +117,7 @@ capture_pane_contents() {
 | 
				
			|||||||
	if [ "$pane_contents_area" = "visible" ]; then
 | 
						if [ "$pane_contents_area" = "visible" ]; then
 | 
				
			||||||
		start_line="0"
 | 
							start_line="0"
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
	tmux capture-pane -epJ -S "$start_line" -t "$pane_id" > "$(resurrect_pane_file "$pane_id")"
 | 
						printf '%s\n' "$(tmux capture-pane -epJ -S "$start_line" -t "$pane_id")" > "$(resurrect_pane_file "$pane_id")"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
save_shell_history() {
 | 
					save_shell_history() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user