view: Also show the filename in the window title when loading it from command line.
diff --git a/programs/view/view.c b/programs/view/view.c
index ebd48aa..d32a10b 100644
--- a/programs/view/view.c
+++ b/programs/view/view.c
@@ -386,7 +386,10 @@
             cmdline++;
             cmdline[lstrlenW(cmdline) - 1] = 0;
         }
+        szFileTitle[0] = 0;
+        GetFileTitleW(cmdline, szFileTitle, sizeof(szFileTitle));
         DoOpenFile(cmdline);
+        UpdateWindowCaption();
     }
 }