[Ttssh2-commit] [7143] Support Bracketed Paste Mode when Drag And Drop Paste filename

scmno****@osdn***** scmno****@osdn*****
2018年 6月 30日 (土) 00:52:53 JST


Revision: 7143
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7143
Author:   zmatsuo
Date:     2018-06-30 00:52:53 +0900 (Sat, 30 Jun 2018)
Log Message:
-----------
Support Bracketed Paste Mode when Drag And Drop Paste filename

Modified Paths:
--------------
    branches/drag_and_drop/teraterm/teraterm/vtwin.cpp

-------------- next part --------------
Modified: branches/drag_and_drop/teraterm/teraterm/vtwin.cpp
===================================================================
--- branches/drag_and_drop/teraterm/teraterm/vtwin.cpp	2018-06-29 15:29:01 UTC (rev 7142)
+++ branches/drag_and_drop/teraterm/teraterm/vtwin.cpp	2018-06-29 15:52:53 UTC (rev 7143)
@@ -2565,6 +2565,9 @@
 		case DROP_TYPE_PASTE_FILENAME:
 		{
 			const bool escape = (DropTypePaste & DROP_TYPE_PASTE_ESCAPE) ? true : false;
+			if (!BracketedPasteMode()) {
+				TermSendStartBracket();
+			}
 			PasteString(&cv, FileName, escape);
 			if (DropListCount > 1 && i < DropListCount - 1) {
 				const char *separator = (DropTypePaste & DROP_TYPE_PASTE_NEWLINE) ? "\n" : " ";
@@ -2587,6 +2590,9 @@
 	}
 
 finish:
+	if (BracketedPasteMode()) {
+		TermSendEndBracket();
+	}
 	DropListFree();
 	return 0;
 }



Ttssh2-commit メーリングリストの案内