// If pacnew files are found, warn the user and prompt to pacdiff
// If pacnew files are found, warn the user and prompt to pacdiff
if!pacnew.is_empty(){
if!pacnew.is_empty(){
letchoice=prompt!(defaultfalse,"It appears that at least one program you have installed / upgraded has installed a .pacnew/.pacsave config file. Would you like to run pacdiff to deal with this? You can always deal with this later by running `sudo pacdiff`");
sp.stop_bold("It appears that at least one program you have installed / upgraded has installed a .pacnew/.pacsave config file. These are created when you have modified a program's configuration, and a package upgrade could not automatically merge the new file.");
letchoice=prompt!(defaultfalse,"Would you like to run pacdiff to deal with this? You can always deal with this later by running `sudo pacdiff`");
ifchoice{
ifchoice{
warn!("Unless you've set an alternative using the DIFFPROG environment variable, pacdiff uses `vimdiff` by default to edit files for merging. Make sure you know how to exit vim before proceeding");
warn!("Pacdiff uses vimdiff by default to edit files for merging. You can focus panes by mousing over them and pressing left click, and scroll up and down using your mouse's scroll wheel (or the arrow keys). To exit vimdiff, press the following key combination: ESC, :qa!, ENTER");
warn!("You can surpress this warning in the future by setting the `PACDIFF_WARNING` environment variable to `0`");