When one is sitting at a meal and desires to pause for havdalah to perform havdalah in the middle of the meal before the Maariv prayer—he may perform havdalah, and if they drank wine beforehand, he does not need to repeat the blessing of "borei peri hagafen" over the cup of havdalah, for havdalah is not an interruption, just as kiddush is not an interruption in such circumstances, as has been written in siman 271. And there is one who disagrees, [holding] that havdalah is an interruption. But the primary [ruling] is like the first opinion, for the one who disagrees holds that one is obligated to interrupt according to the opinion we wrote in section 4, and therefore it automatically follows that it is an interruption. And even though regarding kiddush everyone agrees one must interrupt, and nevertheless we do not bless "borei peri hagafen" as has been written there, that is because kiddush is required for the meal, which is not the case with havdalah. However, regarding the law, since we do not hold like this opinion, as has been written in section 4—therefore here too regarding the law we hold that he does not need to bless. And this is when they were sitting at a meal, but when they were only drinking and sought to perform havdalah, since we hold that they are obligated to interrupt, as has been written in section 5, it automatically follows that he must repeat the blessing of "borei peri hagafen" over the cup of havdalah (so it is according to the words of the Taz, subsection 4). And there is one who says that even when they were engaged in drinking, he does not need to bless, because havdalah is not an interruption at all (Be'er Heitev). And there is one who says that even if they were engaged in a meal, he must bless, for havdalah is even worse since it has no connection to the meal at all (Magen Avraham, subsection 6). And in my humble opinion, the primary [ruling] is like the first opinion, and it is good to be careful not to come to this; and indeed, we are not accustomed to this, but rather we finish the meal, pray Maariv, and perform havdalah. But if necessity brings one to perform havdalah in the middle of the meal—he should not bless "borei peri hagafen" over the cup of havdalah. (And the Magen Avraham himself is somewhat in doubt, see there, and so it was explained from the Eliyah Rabbah and the Tosefet Shabbat, see there, that this is the primary law.)
כשישב בסעודה ורצונו להפסיק להבדלה לעשות הבדלה באמצע הסעודה קודם תפ(י)לת ערבית - יכול להבדיל, ואם שתו יין מקודם - אין צריך לחזור ולברך על הכוס של הבדלה 'בורא פרי הגפן', דאין ההבדלה הפסק כמו שקידוש לא הוי הפסק בכהני גווני, כמ"ש בסימן רע"א, ויש מי שחולק, דהבדלה הוי הפסק. והעיקר כדיעה ראשונה, דהיש מי שחולק סובר דמוכרח להפסיק כדיעה שכתבנו בסעיף ד', ולכן ממילא דהוי הפסק. ואף על גב דבקידוש צריך להפסיק לכולי עלמא, ומכל מקום אין מברכין 'בורא פרי הגפן' כמ"ש שם, זהו משום דקידוש צריך לסעודה, מה שאין כן הבדלה. אמנם לדינא, כיון דלא קיימא לן כדיעה זו, כמ"ש בסעיף ד' - לכן גם כאן לדינא קיימא לן דאין צריך לברך. וזהו כשישבו בסעודה, אבל כשהיו רק שותין ובקשו להבדיל, כיון דקיימא לן שמחוייבין להפסיק, כמ"ש בסעיף ה', ממילא דצריך לחזור ולברך על הכוס של הבדלה 'בורא פרי הגפן' (כן הוא לדברי הט"ז סק"ד). ויש מי שאומר דאפילו כשעסקו בשתייה - אין צריך לברך, משום דהבדלה לא הוי הפסק כלל (ב"ה). ויש מי שאומר דאפילו עסקו בסעודה - צריך לברך, דהבדלה גרע טפי שאין לה שייכות להסעודה כלל (מג"א סק"ו). ולעניות דעתי העיקר כדיעה ראשונה, וטוב ליזהר שלא לבא לידי כך, ובאמת אין אנו רגילים בכך, אלא גומרים הסעודה ומתפללין מעריב ועושין הבדלה. אך אם ההכרח מביא לעשות הבדלה באמצע הסעודה - לא יברך 'בורא פרי הגפן' על כוס של הבדלה. (והמג"א עצמו כמסתפק קצת ע"ש וכן נתבאר מהא"ר והת"ש ע"ש דכן עיקר לדינא)