Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VIM-2276 ls returns "absolute path" for files on Microsoft Windows. #289

Merged
merged 1 commit into from
Apr 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/com/maddyhome/idea/vim/ex/handler/BufferListHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import com.maddyhome.idea.vim.ex.ExOutputModel
import com.maddyhome.idea.vim.ex.flags
import com.maddyhome.idea.vim.helper.EditorHelper
import org.jetbrains.annotations.NonNls
import java.io.File

/**
* Handles buffers, files, ls command. Supports +, =, a, %, # filters.
Expand Down Expand Up @@ -95,7 +94,7 @@ class BufferListHandler : CommandHandler.SingleExecution() {

private fun buildVirtualFileDisplayMap(project: Project): Map<VirtualFile, String> {
val openFiles = FileEditorManager.getInstance(project).openFiles
val basePath = if (project.basePath != null) project.basePath + File.separator else ""
val basePath = if (project.basePath != null) project.basePath + "/" else ""
val filePaths = mutableMapOf<VirtualFile, String>()

for (file in openFiles) {
Expand Down