mirror of
				https://github.com/m00natic/vlfi.git
				synced 2025-10-30 22:53:37 +00:00 
			
		
		
		
	Update file size when moving to end of buffer.
This commit is contained in:
		
							
								
								
									
										4
									
								
								vlf.el
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								vlf.el
									
									
									
									
									
								
							| @@ -120,7 +120,8 @@ | |||||||
| (defun vlf (file) | (defun vlf (file) | ||||||
|   "View Large FILE in batches. |   "View Large FILE in batches. | ||||||
| You can customize number of bytes displayed by customizing | You can customize number of bytes displayed by customizing | ||||||
| `vlf-batch-size'." | `vlf-batch-size'. | ||||||
|  | Return newly created buffer." | ||||||
|   (interactive "fFile to open: ") |   (interactive "fFile to open: ") | ||||||
|   (let ((vlf-buffer (generate-new-buffer "*vlf*"))) |   (let ((vlf-buffer (generate-new-buffer "*vlf*"))) | ||||||
|     (set-buffer vlf-buffer) |     (set-buffer vlf-buffer) | ||||||
| @@ -198,6 +199,7 @@ with the prefix argument DECREASE it is halved." | |||||||
| (defun vlf-end-of-file () | (defun vlf-end-of-file () | ||||||
|   "Jump to end of file content." |   "Jump to end of file content." | ||||||
|   (interactive) |   (interactive) | ||||||
|  |   (vlf-verify-size) | ||||||
|   (vlf-move-to-batch vlf-file-size)) |   (vlf-move-to-batch vlf-file-size)) | ||||||
|  |  | ||||||
| (defun vlf-revert (&optional _ignore-auto noconfirm) | (defun vlf-revert (&optional _ignore-auto noconfirm) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user