shithub: vdir

Download patch

ref: 663d1a8c4432f3cef70466c04699fb6ebaafbc22
parent: 5ba856912e6c4a6490d31f69a09cde50a72c40f9
author: phil9 <[email protected]>
date: Mon Mar 21 13:02:26 EDT 2022

rename: default to current file name

--- a/vdir.c
+++ b/vdir.c
@@ -605,6 +605,7 @@
 				redraw();
 				break;
 			case Mrename:
+				snprint(buf, sizeof buf, "%s", d.name);
 				if(enter("Rename to", buf, sizeof buf, mctl, kctl, nil)>0){
 					mv(d.name, buf);
 					redraw();