def filepirate_accept(self, line_number = None):
		" Close the File Pirate window and switch to the selected file "
		if line_number is None:
			y, x = vim.current.window.cursor
			filename = self.buf[y - 1][1:]
		else:
			# 0-indexed
			filename = self.buf[line_number + 1][1:]
		filename = filename.replace(' ', r'\ ')
		self.filepirate_close()

		vim.command('e %s' % (filename))
dataset/ETHPy150Open nfd/filepirate/plugin/vimfilepirate.py/VimFilePirate.filepirate_accept/original