Skip to content

Commit

Permalink
VIM-2276 ls returns "absolute path" for files on Microsoft Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
michal authored and AlexPl292 committed Apr 19, 2021
1 parent e916cbe commit cfe3473
Showing 1 changed file with 1 addition and 2 deletions.
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

0 comments on commit cfe3473

Please sign in to comment.