mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-13 03:20:33 -07:00
Fix drag and drop escaping (#18965)
This commit is contained in:
committed by
GitHub
parent
bdc2eb5721
commit
7f00209b68
@@ -2814,15 +2814,7 @@ export function useTextBuffer({
|
||||
paste &&
|
||||
escapePastedPaths
|
||||
) {
|
||||
let potentialPath = ch.trim();
|
||||
const quoteMatch = potentialPath.match(/^'(.*)'$/);
|
||||
if (quoteMatch) {
|
||||
potentialPath = quoteMatch[1];
|
||||
}
|
||||
|
||||
potentialPath = potentialPath.trim();
|
||||
|
||||
const processed = parsePastedPaths(potentialPath);
|
||||
const processed = parsePastedPaths(ch.trim());
|
||||
if (processed) {
|
||||
textToInsert = processed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user